Question: Your Tasks For this exercise, write a program that contains an introductory docstring. This documentation should describe what the program will do ( analysis )
Your Tasks
For this exercise, write a program that contains an introductory docstring. This documentation should describe what the program will do analysis and how it will do it design the program in the form of a pseudocode algorithm Include suitable prompts for all inputs, and label all outputs appropriately. After you have coded a program, be sure to test it with a reasonable set of legitimate inputs.
Instructions
The tax calculator program of the case study outputs a floatingpoint number that might show more than two digits of precision. Program: taxform.py
Author: Ken Lambert
Compute a person's income tax.
Significant constants
tax rate
standard deduction
deduction per dependent
The inputs are
gross income
number of dependents
Computations:
taxable income gross income the standard deduction
a deduction for each dependent
income tax is a fixed percentage of the taxable income
The outputs are
the income tax
# Initialize the constants
TAXRATE
STANDARDDEDUCTION
DEPENDENTDEDUCTION
# Request the inputs
grossIncome floatinputEnter the gross income:
numDependents intinputEnter the number of dependents:
# Compute the income tax
taxableIncome grossIncome STANDARDDEDUCTION
DEPENDENTDEDUCTION numDependents
incomeTax taxableIncome TAXRATE
# Display the income tax
printThe income tax is $ strincomeTax
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
