- Name Id Write A C Program For Atm Machine The Program Displays The Following Menu To The Costumer To Select One Op 1 (28.07 KiB) Viewed 15 times
Name: ID#: Write a C++ program for ATM machine. The program displays the following menu to the costumer to select one op
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Name: ID#: Write a C++ program for ATM machine. The program displays the following menu to the costumer to select one op
Name: ID#: Write a C++ program for ATM machine. The program displays the following menu to the costumer to select one operation: Please, choose one operation: 1-Deposit 2-Withdraw 3-Display balance If the user chooses 1, the program asks him/her to enter the amount of money to be deposited, update the balance, and display the updated balance. If the entered amount for money is negative, the program should give an appropriate error message and terminate. If the user chooses 2, the program asks him/her to enter the amount of money to be withdrawn, update the balance, and display the balance. If the entered amount for money withdrawal is negative or more than the balance, the program gives appropriate error message and terminate. If the user chooses 3, the program will display balance and end. Assume the initial balance is 1000 before conducting any operation.