Question: Description: Write a program that shows the user a menu and then prompt the user for their selection. The program will then respond letting them
Description:
Write a program that shows the user a menu and then prompt the user for their selection. The program will then respond letting them know which option they chose.
Instructions:
Follow the following steps to implement your solution:
- Create a new project in the IDE of your choice.
- Then, copy or type the following code:
#includeusing namespace std; int main() { // print a menu cout << "A - Option A "; cout << "B - Option B "; cout << "C - Option C "; cout << "Enter your choice: "; ________ choice; cin >> ________; ________ (________) { case ____: cout << "You entered A! "; break; ________ 'B': cout << "You entered B! "; ________ ________ 'C': cout << "You entered C! "; ________ ________ : cout << "Invalid Choice! "; } cout << "Program done!" << endl; cin.ignore(); cin.get(); }
3. Replace the blanks with the appropriate code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
