Question: I need help on the following Pythong program. Thanks!! Write a program using a function named: taxes(status, income) to calculate income tax. Apply the following

I need help on the following Pythong program. Thanks!!
I need help on the following Pythong program. Thanks!! Write a program

Write a program using a function named: taxes(status, income) to calculate income tax. Apply the following requirements: Income amount & tax percent - Single status: Greater than or equal to 0 AND less than 10000 : 0% Greater than OR equal to 10000 OR less than 60000 : 15 % Greater than OR equal to 60000:20 % Income amount & tax percent - Married status: Greater than OR equal to 0 AND less than 20000 : 0% Greater than OR equal to 20000 OR less than 80000 : 10% Greater than OR equal to 80000 : 15% Use the the following as your print statements: print (taxes ("single", -5)) print (taxes ("single", o)) print (taxes ("single", 10000)) print(taxes ("single", 59999)) print (taxes ("divorced", 20000) print (taxes ("married", -5)) print(taxes ("married", o)) print (taxes ("married", 20000) print(taxes ("married", 79999) Example output: 'Note the error messages, the code should display these if input is invalid. Error: income invalid 0 1500.0 8999.85 Error: status invalid Error: income invalid 0 2000.0 12000.0

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!