Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Identify and discuss learning style differences across cultures

Answered: 1 week ago