Skip to content

anshman-git/CodeAlpha_BankingSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeAlpha Banking System

A console-based Bank Account Management System written in C, built as part of the CodeAlpha C Programming Internship — Task 4.


Features

  • Create Account — set up a new bank account with an opening deposit
  • Deposit — add funds to any existing account
  • Withdraw — withdraw funds with real-time balance validation
  • Balance Enquiry — instantly check current balance
  • Mini Statement — view the last 10 transactions with date and time
  • Display All Accounts — overview of every account in the system
  • Persistent Storage — all data is saved to a binary file (accounts.dat), so nothing is lost between runs

Tech Stack

  • Language: C (C99)
  • File handling: binary I/O with fread / fwrite
  • Data structures: struct with embedded transaction history
  • Standard libraries: stdio.h, stdlib.h, string.h, time.h

Build & Run

# Compile
gcc -o banking_system banking_system.c

# Run
./banking_system

Or use the Makefile:

make
./banking_system

Project Structure

CodeAlpha_BankingSystem/
├── banking_system.c   # full source code
├── Makefile           # build config
├── .gitignore         # ignores binary and data files
└── README.md          # this file

How It Works

Each account is stored as a struct containing the account number, holder name, current balance, and a rolling buffer of the last 10 transactions. All accounts are written to accounts.dat as raw binary records. On every update, the file is rewritten with the modified record in place — similar to how a simple flat-file database works.


Author

Lucifuge — BCA Student, United Institute of Management, Prayagraj
GitHub: @anshman-git


Built during the CodeAlpha C Programming Internship

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors