ATM Machine

February 26, 2019

Today’s exercise asks you to simulate an ATM machine:

  1. Prompt for userid and password. If userid and password are not in the database, reprompt.
  2. Display balance.
  3. 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.
  4. 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.


Pages: 1 2