Write a Java program to calculate the tax for a taxable income of rs 4,10,000 if the tax rate is fixed at 3.2%
Answers
Answered by
32
class calculate
{
public static void main(String args[])
{
int income=410000;
double rate=3.2;
double payabletax;
payabletax=income*(rate/100);
System.out.println("The payable tax amount is "+payabletax);
}
}
Explanation:
- Open a class calculate.
- Declare the income, tax rate and payable tax variable with appropriate datatypes.
- Calculate the tax with the given input values.
- Print the obtained values.
To Learn More:
1. https://brainly.in/question/9157879
2. https://brainly.in/question/10077982
Answered by
9
Following are the program in java programming language is given below .
Explanation:
public class Main
{
public static void main(String[] args) // main method
{
int inc=410000; // variable declaration
double rate1=3.2; // variable declaration
double payabletax1;// variable declaration
payabletax1=inc*(rate1/100);
System.out.println("Payable tax amount : "+payabletax1);
}
}
Output:
Payable tax amount : 13120.0
Following are the description of program
- Create a main class .In this class we declared a three variable "inc" as integer type rate1 and payabletax1 as double type .
- Initialized "inc" variable and "rate1" variable.After that calculate the payabletax1 by using the formula that are given below .
- payabletax1=inc*(rate1/100); this formula calculated the tax finally print that value .
Learn More :
- brainly.in/question/12179665
Similar questions