Question: Using Visual Studio 2022 in C++ Console App. 1. Write a program to do the following things using a switch statement 1) input an income

 Using Visual Studio 2022 in C++ Console App. 1. Write a

Using Visual Studio 2022 in C++ Console App.

1. Write a program to do the following things using a switch statement 1) input an income (integer type) from the keyboard, then 2) calculate the tax (floating point type) on the income, which is income tax rate. The tax rate is determined based on the following assumptions: a. If income =2000, tax rate =30% 3) finally display the tax for the income. Note that you have done this problem in Lab\#4 using the two-way selection statements. Here it is required that you develop your program using the switch statement. Hint: define an integer variable as income /1000 Example Runs to Test your Program: - Input income 737, the tax 0.000000 is displayed on the screen - Input income 1600 , the tax400.000000 is displayed on the screen - Input income 2000, the tax 600.000000 is displayed on the screen - Input income 2070 , the tax621.000000 is displayed on the screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!