Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
1. Ihe 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. 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 (50000 20000)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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

=+ 2. What is the opportunity cost of seeing a movie?

Answered: 1 week ago

Question

=+ what roles should government play in them ?

Answered: 1 week ago

Question

=+ Why do we have markets and, according to economists,

Answered: 1 week ago