Please tell this question.
02. Define a class employee which accepts the 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:
- Up to Rs. 2,00,000
- From Rs. 2,00,001 to Rs. 3,50,000
- From Rs. 3,50,001 to Rs. 6,50,000
Tax rates for Males:
- No tax
- No tax
- 20% of the income exceeding Rs. 2,00,000
- 25% of the income exceeding Rs. 3,50,000
- 30% of the income exceeding Rs. 6,50,000
Tax rates for Females:
- No tax
- No tax
- 15% of the income exceeding Rs. 2,00,000
- 10% of the income exceeding Rs. 3,50,000
- 20% of the income exceeding Rs. 6,50,000
Above Rs. 6,50,000