Question: Write a simple Python program to calculate the tax. The tax rate depends on the marital status, salary and the age as follows: Note: User
Write a simple Python program to calculate the tax. The tax rate depends on the marital status, salary and the age as follows:
Note: User can enter either S or s for single and M or m for married. Sample Test Data:
Please enter your income: 72000
Please enter your marital status, S for single and M for married: m
Please enter your age: 55 Sample Output: The tax amount is $15600.00
If the status is SINGLE and the taxable INCOME is: at most $50,000 over $50,000 The tax is: Age
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
