Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q2: Write a program that asks the user for income and computes the income tax according to the following table. 1 percent on the first

Q2: Write a program that asks the user for income and computes the income tax according to the following table. 1 percent on the first $50,000. 2 percent on the amount over $50,000 up to $75,000. 3 percent on the amount over $75,000 up to $100,000. 4 percent on the amount over $100,000 up to $250,000. 5 percent on the amount over $250,000 up to $500,000. 6 percent on the amount over $500,000.

Input/output would be as follows for the sample data:

Enter income: 100000

Income is $100,000.00

Tax is $1,750.00

Enter income: 600000

Income is $600,000.00

Tax is $26,250.00

Enter income: 500000

Income is $500,000.00

Tax is $20,250.00

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 Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago