Skip to content

C-bank is a Bank Account Management System in C, a console-based application designed to efficiently manage and perform basic operations on bank accounts.

Notifications You must be signed in to change notification settings

saber-elg/c-bank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🏦 C-Bank: Bank Account Management System in C

🚀 Effortless Bank Account Management via a Console-Based Application

C-Bank is a Bank Account Management System written in C, designed to efficiently handle essential banking operations via a simple console interface. This application enables users to create and manage bank accounts with ease, featuring functionalities such as account creation, deposits, withdrawals, balance inquiries, and account closure.

📌 Key Features

Account Creation – Users can create new bank accounts by providing essential details such as account holder name, email, etc.
Deposit Operation – Allows users to deposit funds into their accounts while automatically updating the balance.
Withdrawal Operation – Enables users to withdraw money, ensuring the requested amount does not exceed the available balance.
Balance Inquiry – Users can check their real-time account balance at any time.
Account Closure – Accounts can be closed securely, provided there are no outstanding balances.
Error Handling – Prevents issues like insufficient funds, invalid inputs, and other errors.
Data Persistence – Account information is stored in files, ensuring that data remains intact even after restarting the application.
Security Measures – Basic password protection and secure file handling are implemented to safeguard sensitive user data.

📂 Project Structure

📦 c-bank
 ├── 📄 main.c           # Core application logic
 ├── 📄 account.h        # Header file for account-related functions
 ├── 📄 functions.c      # Implementation of bank operations
 ├── 📄 database.txt     # Storage file for account data
 ├── 📄 README.md        # Project documentation
 ├── 📄 Makefile         # Build automation (optional)

⚙️ Requirements

Ensure you have the following installed to run the project:

🔹 GCC Compiler (sudo apt install gcc on Linux/macOS)
🔹 A C Development Environment (VS Code, CodeBlocks, etc.)

▶️ How to Run the Project

1️⃣ Clone the Repository

git clone https://github.com/your-username/c-bank.git
cd c-bank

2️⃣ Compile the Code

gcc main.c functions.c -o c-bank

3️⃣ Run the Application

./c-bank

🎯 How It Works

When you run the program, you will be presented with a menu-driven interface:

1️⃣ Create a New Account – Enter details like name, email, and initial deposit.
2️⃣ Deposit Funds – Add money to your account.
3️⃣ Withdraw Funds – Securely withdraw money (ensures no overdrafts).
4️⃣ Check Balance – View your current balance instantly.
5️⃣ Close Account – Remove an account from the system if the balance is zero.
6️⃣ Exit Program – Safely exit the application.

🔥 Why Use C-Bank?

✔ Simple & Lightweight – No complex UI, just a fast and functional console app.
✔ Data Persistence – Your account details are saved securely even after closing the program.
✔ Beginner-Friendly – Ideal for learning C programming, file handling, and basic banking logic.

💡 Contributors

👩‍💻 El Hadifi Soukaina
👨‍💻 El Guelta Mohamed-Saber

🤝 Contributions & Feedback

🔹 Found a bug? Have suggestions? Open an issue or submit a pull request!
🔹 Let’s improve C-Bank together! 🚀
📩 Contact us:

About

C-bank is a Bank Account Management System in C, a console-based application designed to efficiently manage and perform basic operations on bank accounts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages