A comprehensive console-based ATM (Automated Teller Machine) simulation program written in C++. This project demonstrates core banking functionalities including cash withdrawals, balance inquiries, fund transfers (both local and international), and utility bill payments.
- Account Types: Supports both Current and Savings accounts.
- Authentication: Requires a 16-digit account number and a 4-digit PIN for access.
- Cash Withdrawal:
- Pre-set amounts: 1000, 5000, 10000, 25000.
- Custom amounts (multiples of 500).
- Automatic tax deduction for Current accounts (0.6%).
- Balance Inquiry: Real-time account balance checking with optional printed receipt.
- Fund Transfers:
- Local Transfer: To same bank or other local banks (with 0.3% tax deduction).
- International Transfer: Supports currency conversion to Dollars ($), Euros (€), Pounds (£), and Lira (₺) based on configured exchange rates.
- Bill Payments: Pay utility bills (Electricity, Gas) using a 14-digit reference number, or 1 Bill Invoice using a 17-digit consumer number.
To compile and run this program, you need a C++ compiler installed on your system (e.g., GCC, Clang, or MSVC).
- Clone the repository:
git clone https://github.com/ahmedchorahi/ATM.git
- Navigate to the project directory:
cd ATM - Compile the source code:
g++ Sourcecode.cpp -o atm
- Run the executable:
- On Windows:
atm.exe - On Linux/macOS:
./atm
- On Windows:
Upon running the program, follow the on-screen prompts:
- Insert Card: Press
1to simulate inserting your ATM card. - Verify Account:
- Enter any 16-digit account number (e.g.,
1234567890123456). - Enter any 4-digit PIN (e.g.,
1234).
- Enter any 16-digit account number (e.g.,
- Select Account Type: Choose between Current
1or Savings2account. - Perform Transactions: Use the numerical menus to navigate through withdrawals, transfers, and payments.
Note: The initial account balance is set to PKR 100,000.00 for simulation purposes.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.