Question: In C++ please! WARNING: You MUST use do-while loop to complete this exercise to receive points! Write a program to simulate a user menu. When

In C++ please!

WARNING: You MUST use do-while loop to complete this exercise to receive points!

Write a program to simulate a user menu. When the program is executed, it will output the following message asking for the user to select a menu option

Please enter an integer (1 - Option 1; 2 - Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Option): 

If the user enters 4, then the program will output Good bye! and exit. If the user enters integers other than 4, the program will output the corresponding message and asks for the user to enter another integer until the user enters 4.

Ex: if the user inputs:

1 2 4 

the program will output:

Please enter an integer (1 - Option 1; 2 - Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Option): You selected Option 1. Please enter an integer (1 - Option 1; 2 - Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Option): You selected Option 2. Please enter an integer (1 - Option 1; 2 - Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Option): Good bye!

In C++ please! WARNING: You MUST use do-while loop to complete this

WARNING: You MUST use do-while loop to complete this exercise to receive points! Write a program to simulate a user menu. When the program is executed, it will output the following message asking for the user to select a menu option Option 1; 2- Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Please enter an integer (1 - Option) : If the user enters 4, then the program will output Good bye! and exit. If the user enters integers other than 4, the program will output the corresponding message and asks for the user to enter another integer until the user enters 4. Ex: if the user inputs: 1 2 4 the program will output: Please enter an integer (1 - Option 1; 2 - Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Option) : You selected Option 1. Please enter an integer (1 - Option 1; 2 - Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Option): You selected Option 2. Please enter an integer (1 - Option 1; 2 - Option 2; 3 - Option 3; 4 - Exit; Others - Unknown Option): Good bye

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!