A simple console-based banking record management system implemented in C++. It allows users to create, modify, delete, deposit, withdraw, and display bank accounts stored in a binary file.
-
Create new bank accounts with:
- 12-digit account number
- Account holder's name
- Account type (Saving or Current)
- Initial deposit with minimum balance rules
-
Modify existing account details
-
Deposit and withdraw money with balance constraints
-
Display balance enquiry for a specific account
-
List all accounts in a tabular summary view
-
Delete/close an account
-
Data persistence using a binary file (
account.dat)
- A C++ compiler that supports C++11 or later
- Windows OS (uses
system("cls")for console clearing) - Basic knowledge of console input/output in C++
Use a C++ compiler to build the source code. For example, with g++:
g++ -o banking_system main.cppExecute the compiled program:
./banking_systemFollow the on-screen menu options:
========= BANKING RECORD SYSTEM =========
1. Create New Account
2. Modify An Account
3. Balance Enquiry
4. Deposit
5. Withdraw
6. Show All Accounts
7. Close An Account
8. Exit
Select an option:
Input the number corresponding to the action you want to perform.
- Account number must be exactly 12 digits.
- Account type can be
S(Saving) orC(Current). - Minimum balance for Savings account is 500.
- Minimum balance for Current account is 1000.
- Maximum allowed balance is 999,999.
- Account data is saved in a binary file
account.dat. - Deleting an account rewrites the data file without the deleted account.
- Console clearing uses
system("cls")and is Windows-specific.
- BankAccount class encapsulates account data and operations.
- File operations use binary I/O to store/read account data.
- Utility functions handle displaying all accounts, deposit/withdraw, account modification, and deletion.