Question: (C++) Write a menu driven program to display 4 options to the user. The options available are 1. Withdraw, 2. Check Balance, 3. Deposit, 4.
(C++)
Write a menu driven program to display 4 options to the user.
The options available are 1. Withdraw, 2. Check Balance, 3. Deposit, 4. Exit.
The program should use a do-while loop to create the menu and a switch statement to evaluate the options and the default for an invalid option.
Your program DOES NOT need to perform the operations, only confirm the options selected via cout.
Your output should like something like this:
Select from Menu:
1. Withdraw Money
2. Check Balance
3. Deposit
4. Exit
Enter Option
1
Withdrawing Money
Select from Menu:
1. Withdraw Money
2. Check Balance
3. Deposit
4. Exit
Enter Option
2
Checking Balance
Select from Menu:
1. Withdraw Money
2. Check Balance
3. Deposit
4. Exit
Enter Option
3
Deposit Cash
Select from Menu:
1. Withdraw Money
2. Check Balance
3. Deposit
4. Exit
Enter Option
7
Not a valid option...
Select from Menu:
1. Withdraw Money
2. Check Balance
3. Deposit
4. Exit
Enter Option
4
Exiting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
