Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: AgeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started