This is a C++ banking system that allows customers to create bank accounts, perform deposits, withdrawals, and transfers between accounts. The system also integrates ATM functionalities and maintains customer account records.
- β Customer Account Management β Create and manage bank accounts with customer details.
- β Deposit Money β Add money to a specific bank account by specifying the amount.
- β Withdraw Money β Deduct money from a bank account while ensuring sufficient balance is available.
- β Money Transfer β Transfer money between two different accounts after validating the balance.
- β ATM Functionality β Customers can check their account balance using ATM system functionality.
- β Friend Functions & Classes β Implements friend functions and class relationships for controlled access to private members of classes.
- C++ (Object-Oriented Programming concepts)
- Friend Functions & Classes
- Static Methods
- User Input Handling
- Open Terminal / Command Prompt.
- Navigate to the folder containing the file using the
cd path/to/your-projectcommand. - Compile the program using the following command:
g++ -o banking_system banking_system.cpp
- Run the program using:
./banking_system
Enter customer name: John Doe Enter customer address: 123 Main StEnter account number for account 1: 1001 Enter initial balance for account 1: 5000
Enter account number for account 2: 2002 Enter initial balance for account 2: 3000
Accounts for Customer John Doe: Account Number: 1001, Balance: $5000 Account Number: 2002, Balance: $3000
Enter transaction type (deposit, withdraw, transfer): transfer Enter transaction amount: 1000 Enter 1 for account no. 1 to 2 for account no. 2 Enter 2 for account no. 2 and 1 for account no. 1 1
Transfer of $1000 from account number 1001 to account number 2002
Updated Account Information: Account Number: 1001, Balance: $4000 Account Number: 2002, Balance: $4000
/BankingSystem βββ banking_system.cpp # Main source code βββ README.md # Documentation file
- π Add file handling to store transaction history for better tracking.
- π Implement interest calculation based on account type (savings, checking, etc.).
- π Add an authentication system for customer logins to enhance security.
This project is open-source. Feel free to use, modify, and contribute!
This banking system demonstrates Object-Oriented Programming (OOP) principles, friend functions, and user-friendly transactions. It serves as a simple yet effective banking simulation for learning and practicing C++ programming.