Question
Write a Python program that computes the income tax due on taxable income of each amount in a list of amounts for several tax payers.
Write a Python program that computes the income tax due on taxable income of each amount in a list of amounts for several tax payers. Income amounts fall in three different tax brackets. A different tax formula is applied to each of the three tax brackets as below. The tax formula is as follows:
TAXABLE INCOME RANGE TAX DUE
From $0 to $50,000: 5% of income
From $50,000 to $100,000: $2,500 + 7 % of amount over $50,000
From $100,000 and above: $6,000 + 9 % of amount over $100,000
The program will first read tax payer names and amounts from the keyboard and store them in lists, then the program will compute the taxes, and finally it will print out a report. This will be achieved through four functions described below. Functions should not be nested (no function inside another) and should not call themselves. The only function calls should be the ones in main() and the one at the bottom calling main().
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