Skip to content

A simple command-line banking system written in C++, supporting account creation, modification, deposit/withdrawal, and balance inquiry using file-based storage. Great for demonstrating structured programming, binary file handling, and user interaction in terminal applications.

Notifications You must be signed in to change notification settings

vkovaliovskyi/BankSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Banking Record System

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.

Features

  • 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)


Requirements

  • 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++

How to Compile

Use a C++ compiler to build the source code. For example, with g++:

g++ -o banking_system main.cpp

How to Run

Execute the compiled program:

./banking_system

Follow 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.

Notes

  • Account number must be exactly 12 digits.
  • Account type can be S (Saving) or C (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.

Code Structure

  • 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.

About

A simple command-line banking system written in C++, supporting account creation, modification, deposit/withdrawal, and balance inquiry using file-based storage. Great for demonstrating structured programming, binary file handling, and user interaction in terminal applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages