Question: 3) Write a function called income_tax(status, income) that calculates the income tax. It implements the following simplified tax table. (40 points) Single Income Greater than

 3) Write a function called income_tax(status, income) that calculates the incometax. It implements the following simplified tax table. (40 points) Single Income

3) Write a function called income_tax(status, income) that calculates the income tax. It implements the following simplified tax table. (40 points) Single Income Greater than or equal Greater than or equal Greater than or equal to 0 and less than to 10000 or less than to 60000 10000 60000 0% 15% 20% Income Greater than or equal Greater than or equal Greater than or equal to 0 and less than to 20000 or less than to 80000 20000 80000 0% 10% 15% Married Project Project LAMUSIS VIRVILLE-Wpy Eile Edit View Navigate Code Help 1.py * P2.py * 3.py * Exami CAUsers\mokw\Pycharm Projects def income_tex (status, income): 1.py 2 2.py 3.py External Libraries 5 3 7 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 print (income_tax("single", -1)) print (income_tax("single", 0)) print (income_tax ("single", 9999)) print (income_tax ("single", 10000)) print (income_tax ("single", 59999)) print (income_tax ("single", 60000)) 28 29 30 31 32 33 print (income_tax ("married", -1)) print (income_tax"married", 0)) print (income_tax("married", 19999)) print (income tax (married", 20000)) print(income_tax("married", 79999)) print (income tax (married", 80000)) 34 35 36 37 print (income_tax("head of household", 100000)) Run 3 1 AIBU 'XN Cannot accept negative income 0 0 1500.0 8999.85 12000.0 Cannot accept negative income o 0 2000.0 7999.900000000001 12000.0 Wrong status Process finished with exit code O

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!