[Python programming] Functions, lists, dictionary, classes CANNOT BE USED!!! This assignment will give you more experience on...

60.1K

Verified Solution

Question

Programming

[Python programming]

Functions, lists, dictionary, classes CANNOT BE USED!!!

This assignment will give you more experience on the use of:

1. integers (int)

2. floats (float)

3. conditionals(if statements)

4. iteration(loops)

The goal of this project is to make a fictitious comparison ofthe federal income. You will ask the user to input their taxableincome. Use the income brackets given below to calculate the newand old income tax. For the sake of simplicity of the project wewill only consider individuals and not married users. We will alsoignore any tax deductions while calculating income tax—they cansignificantly alter the tax, but add too much complexity for ourprogramming project.

New income tax brackets (2018 and newer)

10% Up to $9,525

12% $9,526 to $38,700

22% $38,701 to $82,500

24% $82,501 to $157,500

32% $157,501 to $200,000

35% $200,001 to $500,000

37% over $500,000

Old income tax brackets (2017 and older)

10% Up to $9,325

15% $9,326 to $37,950

25% $37,951 to $91,900

28% $91,901 to $191,650

33% $191,651 to $416,700

35% $416,701 to $418,400

39.6% over $418,400

Project Description

Your program must meet the following specifications:

1. At program start, prompt the user for their income

2. Repeatedly prompt the user for new income until a negativeincome is entered.

3. Calculate the income tax using the 2017 and 2018 tax brackettables above.

4. For each income entered:

a. Calculate the 2017 income tax and store it in a variable.

b. Next calculate the 2018 income tax and store it in avariable

c. Print

i. The income

ii. The 2017 taxi

iii. The 2018 tax

iv. The difference between the 2018 and 2017 tax rounded tocents

v. The difference between the 2018 and 2017 tax as a percentageof the 2017 tax rounded to cents

Assignment Notes

1. To clarify the project specifications, sample output isappended to the end of this document.

2. Use a while loop with a Boolean that keeps looping as long asthe income is greater than or equal to zero.

3. Prompt for income before the loop and remember to convert theinput string to an int (so you are comparing an int in your Booleanexpression). Remember to prompt again at the end (aka “bottom”) ofthe loop.

4. There will be no error checking in this assignment. If afloat or a string is entered at the prompt, the program willcrash.

Answer & Explanation Solved by verified expert
3.9 Ratings (636 Votes)
N1 assigned The value    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students