Answered step by step
Verified Expert Solution
Link Copied!

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 :)

image text in transcribed

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

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

What are the various career paths that individuals may use?

Answered: 1 week ago