Write a java program with the initialization earning of an employee.
The program should calculate the income tax to be paid by the employee as per the criteria given below:
Slab rate IT rate
Upto Rs. 50,000 Nil
Upto Rs. 60,000 10% on additional amount
Upto Rs. 1,50,000 20% on additional amoun
Above Rs. 1,50,000 30% on the additional amount
Hint: - Run: - java calculates 1,25,000
Answers
Answered by
0
Answer:
The program should calculate the income tax to be paid by the employee as per the criteria given below:Slab rate IT rate Upto Rs. 50,0.
Answered by
5
Answer:
Output:
Enter income 1,25,000
Income tax amount is 23000.0
Explanation:
import java.util.Scanner;
class Income
{
public static void main(String args[])
{
double tax=0,it;
Scanner sc=new Scanner(System.in);
System.out.println("Enter income ");
it=sc.nextDouble();
if(it<=50000)
tax=0;
else if(it<=60000)
tax=0.1*(it-50000);
else if(it<=150000)
tax=(0.2*(it-60000))+(0.1*100000);
else
tax=(0.3*(it-150000))+(0.2*90000)+(0.1*10000);
System.out.println("Income tax amount is "+tax);
}
}
Similar questions