ATM Machine
February 26, 2019
Today’s exercise asks you to simulate an ATM machine:
- Prompt for userid and password. If userid and password are not in the database, reprompt.
- Display balance.
- Present a menu asking to deposit, withdraw or exit. If user selects withdraw or deposit, perform the indicated transaction and goto Step 2. Deny withdrawals that would overdraw the account.
- Exit the program.
Your task is to write a program to simulate an ATM machine. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.