Computer Science, asked by himanshusinghkharwar, 4 months ago

Define a class employee which accepts name of the employee, annual

taxable income of the employee and the type of employee (‘M’ for male and

‘F’ for female).Calculate and print the tax to be paid by the employee along

with all the details. The program should compute the tax according to the

given conditions:

Total annual taxable

income

Tax rates for Males Tax rates for Females

Upto Rs. 2,00,000 No tax No tax

From Rs. 2,00,001 to

Rs.3,50,000

20% of the income

exceeding Rs. 2,00,000

15% of the income

exceeding Rs.2,00,000

From Rs. 3,50,001 to

Rs.6,50,000

Rs. 15000+25% of the

income exceeding

3,50,000

Rs. 10000+10% of the

income exceeding

3,50,000

Above Rs. 6,50,000 Rs. 30,000+30% of the

income exceeding

6,50,000

Rs. 25,000+20% of the

income exceeding

6,50,000
write step by step program please​

Answers

Answered by ShreyaKayal
1

Answer:

Define a class employee which accepts name of the employee, annual

taxable income of the employee and the type of employee (‘M’ for male and

‘F’ for female).Calculate and print the tax to be paid by the employee along

with all the details. The program should compute the tax according to the

given conditions:

Total annual taxable

income

Tax rates for Males Tax rates for Females

Upto Rs. 2,00,000 No tax No tax

From Rs. 2,00,001 to

Rs.3,50,000

20% of the income

exceeding Rs. 2,00,000

15% of the income

exceeding Rs.2,00,000

From Rs. 3,50,001 to

Rs.6,50,000

Rs. 15000+25% of the

income exceeding

Similar questions