Modify the program by adding the missing function. The missing function will use Python selection statements to calculate the amount of tax that a single (unmarried) taxpayer owes using the table attached.
Note: the federal tax is progressive. For example, if a person has a taxable income of 15,000, the first 9,700 is taxed at a rate of 10% and the remaining 5,300 is taxed at a rate of 12%.
If the missing function is implemented correctly, this output will appear:
The 2020 taxable income is $5000.00
An unmarried individual owes $500.00
The 2020 taxable income is $20000.00
An unmarried individual owes $2206.00
The 2020 taxable income is $50000.00
An unmarried individual owes $6858.50
The 2020 taxable income is $100000.00
An unmarried individual owes $18174.50
The 2020 taxable income is $200000.00
An unmarried individual owes $45316.50
The 2020 taxable income is $400000.00
An unmarried individual owes $115193.50
The 2020 taxable income is $600000.00
An unmarried individual owes $186987.5
This assignment has been answered 2 times in private sessions.
© 2024 Codify Tutor. All rights reserved