ATM Controller is a simple ATM program with the following flow: Insert Card => PIN number => Select Account => See Balance/Deposit/Withdraw
Clone the project using git command:
git clone https://github.com/madebybk/atm-controller.gitThis command clones directory atm-controller to your local machine. Navigate into the directory with the command:
cd atm-controllerPython3 must be installed on your machine.
Current Python version may be checked by:
python --versionThe card insertion process is simulated with time.sleep() method.
A bank API would be implemented in the future to verify password, but at this point of the project, 1234 is used as the PIN. The program terminates if user enters incorrect PIN more than 3 consecutive times, and the user would need to restart the login process by reinserting the card.
The program asks user to pick one of the following account options:
- Checking Account
- Savings Account
- Finish Transaction
The account type is saved if either Checking Account or Savings Account is picked, and the program process continues. If Finish Transaction is picked, the program will terminate with a goodbye message.
With the selected account type, the program asks user for their transaction action:
- See Balance
- Deposit
- Withdraw
- Back to Select Account
- Finish Transaction
The transaction action will execute once the user picks an option.
To run the program, enter the following in the root directory of the repository:
python3 atm_controller.pyAs mentioned under Program Process (Step 2), 1234 is the temporary PIN for this project.