Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program: taxform.py Author: Ken Lambert Compute a person's income tax. 1. Significant constants tax rate standard deduction deduction per dependent 2. The inputs are gross
Program: taxform.py Author: Ken Lambert Compute a person's income tax. 1. Significant constants tax rate standard deduction deduction per dependent 2. The inputs are gross income number of dependents 3. Computations: taxable income = gross income the standard deduction a deduction for each dependent income tax = is a fixed percentage of the taxable income 4. The outputs are the income tax # Initialize the constants 0.22 TAX RATE = STANDARD DEDUCTION = 5000.0 DEPENDENT DEDUCTION # Request the inputs grossIncome numDependents # Compute the income tax taxableIncome = 1200.0 float (input ("Enter the gross income: ")) int (input ("Enter the number of dependents: ")) %3! = grossIncome STANDARD DEDUCTION DEPENDENT DEDUCTION numDependents = taxableIncome * TAX RATE incomeTax # Display the income tax print ("The income tax is $" + str(incomeTax))
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