Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ 1. I he program will ask the user the residence state. Ihe user can make only two answers: MS or LA. 2. The program

c++ image text in transcribed
image text in transcribed
1. I he program will ask the user the residence state. Ihe user can make only two answers: MS or LA. 2. The program will ask the user to enter the annual income. 3. The program will display the amount of state tax. This is how the state tax is calculated (the method is for this exercise and is fictional): a. In MS, the first 20000 income doesn't pay tax. If the income is less than or equal to 20000 , the tax is 0. b. In MS, any income above 20000 is taxed at 3% rate. For example, if the income is 50000 , the tax is (5000020000)0.03=900 c. In LA, the tax rate is based on the income too, but with more categories: 40000tax5% The LA tax is the \% of the whole income. For example, the tax for 10000 is 100000.01=100, the tax for the income 30000 is 300000.03=900. 3. The program will display the amount of state tax. This is how the state tax is calculated (the method is for this exercise and is fictional): a. In MS, the first 20000 income doesn't pay tax. If the income is less than or equal to 20000 , the tax is 0. b. In MS, any income above 20000 is taxed at 3% rate. For example, if the income is 50000 , the tax is (5000020000)0.03=900 c. In LA, the tax rate is based on the income too, but with more categories: 40000tax5% The LA tax is the \% of the whole income. For example, the tax for 10000 is 100000.01=100, the tax for the income 30000 is 300000.03=900. Hint: use nested if and else if

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

Expert Oracle Exadata

Authors: Martin Bach, Kristofferson Arao

2nd Edition

1430262427, 9781430262428

More Books

Students also viewed these Databases questions