Question: Solve using c++ (urgent please) Exercise #2 (while loop and switch statement). Write a program that asks the user to choose an option from a

Solve using c++ (urgent please)
 Solve using c++ (urgent please) Exercise \#2 (while loop and switch

Exercise \#2 (while loop and switch statement). Write a program that asks the user to choose an option from a menu of three options: (1) increment the counter. (2) decrement the counter. (3) OR exit the program. Use A while loop to repeatedly display the menu and perform the selected action until the user chooses to exit the program by entering 3 . Use switch statement to perform the selected action based on the value of the choice variable. The program will terminate and display the final value of the count variable If the user choose to exit the program. Sample Output Eal Microseft Visual Studio Debug Console Choose an option: 1. Increment counter 2. Decrement counter 3. Exit program Enter your choice: 1 Counter has been incremented. Choose an option: 1. Increment counter 2. Decrement counter 3. Exit program Enter your choice: 2 Counter has been decremented. Choose an option: 1. Increment counter 2. Decrement counter 3. Exit program Enter your choice: 3 Exiting program. Final counter value: 1

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!