ATM Simulator A simple Python-based ATM Simulator designed to mimics an ATM with features like PIN authentication, balance checking, deposits, withdrawals, transaction history, and receipt generation. Features
User Authentication: Log in with a 4-digit PIN (default: 1234). Main Menu: Choose from options like Check Balance, Deposit, Withdraw, Transaction History, or Exit. Check Balance: View the current account balance. Deposit Money: Add money to the account (rejects negative or zero amounts). Withdraw Money: Withdraw money if sufficient funds are available, with a daily limit of $500. Transaction History: View a list of all transactions with timestamps, amounts, and balances. Receipt Generator: Prints a formatted receipt after each deposit or withdrawal. Daily Withdrawal Limit: Restricts total daily withdrawals to $500, resetting each day.
Prerequisites
Python 3.6 or higher installed (Download Python). A code editor like Visual Studio Code (recommended) or any text editor.
Setup Instructions
Clone or Download the Repository:
Clone the repository: git clone (replace with the GitHub repo URL). Or download the ZIP file from GitHub and extract it.
Navigate to the Project Folder:
Open a terminal and go to the project directory: cd path/to/atm-simulator.
Verify Python Installation:
Run python --version or python3 --version in the terminal to ensure Python is installed.
How to Run
Open the Project:
Open the project folder in your code editor (e.g., VS Code). Ensure the atm_simulator.py file is in the project directory.
Run the Program:
In a terminal, navigate to the project folder and run: python atm_simulator.py (or python3 atm_simulator.py on some systems). Alternatively, in VS Code: Open atm_simulator.py. Click the Run button (top-right) or use the Code Runner extension (Ctrl+Alt+N). Select “Run Python File in Terminal” if prompted.
Interact with the ATM:
Enter the PIN (default: 1234). You have 3 attempts before the account locks. Choose options (1-5) from the menu: 1: Check Balance 2: Deposit Money (enter a positive amount) 3: Withdraw Money (enter an amount within balance and daily limit) 4: View Transaction History 5: Exit
Follow prompts to input amounts or view outputs like receipts and history.
Example Usage Enter your PIN: 1234 Login successful!
=== ATM Menu ===
- Check Balance
- Deposit Money
- Withdraw Money
- Transaction History
- Exit Choose an option (1-5): 2 Enter amount to deposit: $100
ATM RECEIPT