Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use Python :) 1. (20 pts.) Write a program that computes a person's income tax. Following tax laws are in effect: All taxpayers are
Please use Python :)
1. (20 pts.) Write a program that computes a person's income tax. Following tax laws are in effect: All taxpayers are charged a flat tax rate of 20% All taxpayers are allowed a $10,000 standard deduction For each dependent, a taxpayer is allowed an additional $3,000 deduction. . Inputs: gross income (entered to the nearest penny), and number of dependents. Calculation Taxable income - gross income 10000 (3000 number of dependents) Tax- Taxable income * 0.20 Output: Print the tax rounded to 2 decimal places preceded by the text "Tax-" Use a multi-line comment statement at the beginning of the program to describe the purpose of the program. Divide the program into three sections: input, calculation, and output. Use single line comment statements at the beginning of each section to identify the sections (save the module as Prob 1)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