Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you please assist me with this issue ? 3) Write a function called income_tax(status, income) that calculates the income tax. It implements the following
Can you please assist me with this issue ?
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
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