Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Income tax is calculated based on annual income. The tax rate is determined with a tiered approach: Income above a particular tier level is taxed

Income tax is calculated based on annual income. The tax rate is determined with a tiered approach: Income above a particular tier level is taxed at that level's rate.

Run the program with an annual income of 120000. Note the tax rate and tax to pay.

Modify the program to add a new tier: Annual income above 50000 but less than or equal to 100000 is taxed at the rate of 30%, and annual income above 100000 is taxed at 40%.

Run the program again with an annual income of 120000. What is the tax rate and tax to pay now?

Run the program again with an annual income of 60000. (Change the input area below the program.)

Challenge: What happens if a negative annual salary is entered? Modify the program to print an error message in that case.

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

Enhance the basic quality of your voice.

Answered: 1 week ago

Question

Describe the features of and process used by a writing team.

Answered: 1 week ago