Computer Science, asked by TahaJuzer, 5 months ago

Write a program to take the monthly salary from the user, find and display income tax with the help of the following slab:
Monthly Salary Income Tax
8000 or less Nil
8000-9000 20% of Monthly salary
9000-10000 30% of Monthly salary
10000 or above 40% of Monthly salary

Tomorrow I have my Computer exam, please answer this

Answers

Answered by Student6d18
5

please mark as brainlist answer

Attachments:
Answered by sanjeevanaravindan
4

Answer:

Explanation:

Class Abc

{

Void main(int sal,double tax)

{

If((amt>=0)&&(amt<=8000))

tax=nil;

else if((amt>=8000)&&(amt<=9000))

tax=amt*20/100;

else if((amt>=9000)&&(amt<=10000))

tax=amt*30/100;

else if(amt>=10000)

tax=amt*40/100;

System.out.println("Income tax="+tax);

}

}

Similar questions