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:

Write a simple Python program to calculate the tax. The tax rate 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!