Question: Create a program in Python to accept input from clients of their name, gross income and number of dependents. Your program will calculate taxable income
Create a program in Python to accept input from clients of their name, gross income and number of dependents. Your program will calculate taxable income by subtracting $10,000 from the gross income and then also subtracting $3,000 for each dependent. (Taxable income=gross income 10000 - (3000*number of dependents). Your prompts should look similar to: Please enter your name Please enter your gross income Please enter the number of dependents Compute the tax on the taxable income based on the following table: Taxable income Percent tax Up to $10,000 10% 10,001 40,000 12% 40,001 86,500 22% 86,501 165,000 24% 165,001 or more 32% Your program should display for the client a message telling them the amount of their taxable income and amount of tax. This should follow the format: Name, your taxable income is $income and your total amount of tax is $tax Code your program as a loop so that the program will continue to run until there are no more clients. When there are no more clients, the user should enter the text no to end the program.
How to write this in python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
