BANK MANAGEMENT
SYSTEM
DIVYA-25B81A6611
SRINIDHI-25B81A6657
SOWMYA-25B81A6654
LIKITHA-25B81A6622
MOUNIKA-
INTRODUCTION
 This project is a menu-driven
Bank management system
developed in C.
 It uses structures to store and
manage account information.
 It demonstrates real world
banking logic.
 Suitable for small-scale
banking operations.
7/14/20XX Pitch deck title 2
ABOUT
Pitch deck title 3
OBJECTIVES
 Create a new bank
account.
 Delete an account.
 Search account details.
 Edit account
information.
 Display active
accounts.
 Display deleted
accounts.
7/14/20XX
Pitch deck title 4
CODE
7/14/20XX
#include <stdio.h>
#include <string.h>
#define MAX 100
// Structure definition
typedef struct
{
char accNo[19];
char name[50];
float balance;
int status; // 1 = Active, 0 = Deleted
} Bank;
Bank b[MAX];
int count = 0;
int i;
// Function declarations
void createAccount();
void deleteAccount();
void searchAccount();
void editAccount();
Pitch deck title 5
7/14/20XX
int main()
{ int choice;
do {
printf("n===== BANK MANAGEMENT
SYSTEM =====n");
printf("1. Create New Accountn");
printf("2. Delete Accountn");
printf("3. Search Accountn");
printf("4. Edit Account information
n");
printf("5. Show Active Accountsn");
printf("6. Show Deleted Accountsn");
printf("7. Exitn");
printf("Enter your choice: ");
scanf("%d", &choice);
switch (choice) {
case 1: createAccount();
break;
case 2: deleteAccount();
break;
case 3: searchAccount();
break;
case 4: editAccount();
break;
case 5: showActiveAccounts();
break;
case 6: showDeletedAccounts();
break;
case 7: printf("Exiting program...n");
break;
default: printf("Invalid choice!n");
}
}
while (choice != 7);
return 0;
}
Pitch deck title 6
7/14/20XX
// Create Account
void createAccount()
{
if(count >= MAX)
{
printf("Account limit reached!n");
return;
}
printf("Enter Account Number: ");
scanf("%s", b[count].accNo);
// Validate account number length
if(strlen(b[count].accNo) >18)||
strlen(b[count].accNo)<9)
{
printf("Error: Indian Bank Account numbers
has maximum 18 characters and minimum is 9
characters only.n");
return;
// Check for duplicate account number
for( i = 0; i < count; i++)
{
if(strcmp(b[i].accNo, b[count].accNo) == 0)
{
printf("Error: Account number already
exists.n");
return;
}
}
printf("Enter Name: ");
scanf(" %[^n]", b[count].name);
printf("Enter Balance: ");
scanf("%f", &b[count].balance);
b[count].status = 1; // Active
count++;
printf("Account created successfully!n");
}
Pitch deck title 7
7/14/20XX
// Delete Account
void deleteAccount()
{
if(count == 0)
{
printf("No accounts exist. Please create an account first.n");
return;
}
char acc[19];
int found = 0;
printf("Enter Account Number to delete: ");
scanf("%s", acc);
for(i = 0; i < count; i++) {
if(strcmp(b[i].accNo, acc) == 0 && b[i].status == 1) {
b[i].status = 0;
printf("Account deleted successfully!n");
found = 1;
break;
} }
Pitch deck title 8
7/14/20XX
// Search Account
void searchAccount()
{
if(count == 0) {
printf("No accounts exist.n");
return;
}
char acc[19];
int found = 0;
printf("Enter Account Number to search: ");
scanf("%s", acc);
for(i = 0; i < count; i++)
{
if(strcmp(b[i].accNo, acc) == 0) {
printf("nAccount Number: %s", b[i].accNo);
printf("nName: %s", b[i].name);
printf("nBalance: %.2f", b[i].balance);
printf("nStatus: %sn", b[i].status ? "Active" : "Deleted");
found = 1;
break;
}
}
if(found == 0)
printf("Account not found!n");
}
Pitch deck title 9
7/14/20XX
// Edit Account Information
void editAccount()
{
if(count == 0)
{
printf("No accounts exist.n");
return;
}
char acc[19];
int found = 0;
printf("Enter Account Number to edit: ");
scanf("%s", acc);
for( i = 0; i < count; i++) {
if(strcmp(b[i].accNo, acc) == 0 && b[i].status
== 1)
printf("Enter New Balance: ");
scanf("%f", &b[i].balance);
printf("Account updated successfully!n");
found = 1;
break;
}
}
if(found == 0)
printf("Active account not found!n");
}
Pitch deck title 10
7/14/20XX
// Show Active Accounts
void showActiveAccounts()
{
int found = 0;
printf("n--- Active Accounts ---n");
for(i = 0; i < count; i++)
{
if(b[i].status == 1)
{
printf("AccNo: %s | Name: %s |
Balance: %.2fn",
b[i].accNo, b[i].name,
b[i].balance);
found = 1;
}
}
if(found==0)
printf("No active accounts.n");
}
// Show Deleted Accounts
void showDeletedAccounts()
{
int found = 0;
printf("n--- Deleted Accounts ---n");
for( i = 0; i < count; i++)
{
if(b[i].status == 0)
{
printf("AccNo: %s | Name: %sn",
b[i].accNo, b[i].name);
found = 1;
}
}
if(found==0)
printf("No deleted accounts.n");
}
Pitch deck title 11
7/14/20XX
Pitch deck title 12
7/14/20XX
Pitch deck title 13
7/14/20XX
Pitch deck title 14
7/14/20XX
Pitch deck title 15
7/14/20XX
THANK YOU!!

BANKING MANAGEMENT SYSTEM in C PROGRAM.pptx

  • 1.
  • 2.
    INTRODUCTION  This projectis a menu-driven Bank management system developed in C.  It uses structures to store and manage account information.  It demonstrates real world banking logic.  Suitable for small-scale banking operations. 7/14/20XX Pitch deck title 2 ABOUT
  • 3.
    Pitch deck title3 OBJECTIVES  Create a new bank account.  Delete an account.  Search account details.  Edit account information.  Display active accounts.  Display deleted accounts. 7/14/20XX
  • 4.
    Pitch deck title4 CODE 7/14/20XX #include <stdio.h> #include <string.h> #define MAX 100 // Structure definition typedef struct { char accNo[19]; char name[50]; float balance; int status; // 1 = Active, 0 = Deleted } Bank; Bank b[MAX]; int count = 0; int i; // Function declarations void createAccount(); void deleteAccount(); void searchAccount(); void editAccount();
  • 5.
    Pitch deck title5 7/14/20XX int main() { int choice; do { printf("n===== BANK MANAGEMENT SYSTEM =====n"); printf("1. Create New Accountn"); printf("2. Delete Accountn"); printf("3. Search Accountn"); printf("4. Edit Account information n"); printf("5. Show Active Accountsn"); printf("6. Show Deleted Accountsn"); printf("7. Exitn"); printf("Enter your choice: "); scanf("%d", &choice); switch (choice) { case 1: createAccount(); break; case 2: deleteAccount(); break; case 3: searchAccount(); break; case 4: editAccount(); break; case 5: showActiveAccounts(); break; case 6: showDeletedAccounts(); break; case 7: printf("Exiting program...n"); break; default: printf("Invalid choice!n"); } } while (choice != 7); return 0; }
  • 6.
    Pitch deck title6 7/14/20XX // Create Account void createAccount() { if(count >= MAX) { printf("Account limit reached!n"); return; } printf("Enter Account Number: "); scanf("%s", b[count].accNo); // Validate account number length if(strlen(b[count].accNo) >18)|| strlen(b[count].accNo)<9) { printf("Error: Indian Bank Account numbers has maximum 18 characters and minimum is 9 characters only.n"); return; // Check for duplicate account number for( i = 0; i < count; i++) { if(strcmp(b[i].accNo, b[count].accNo) == 0) { printf("Error: Account number already exists.n"); return; } } printf("Enter Name: "); scanf(" %[^n]", b[count].name); printf("Enter Balance: "); scanf("%f", &b[count].balance); b[count].status = 1; // Active count++; printf("Account created successfully!n"); }
  • 7.
    Pitch deck title7 7/14/20XX // Delete Account void deleteAccount() { if(count == 0) { printf("No accounts exist. Please create an account first.n"); return; } char acc[19]; int found = 0; printf("Enter Account Number to delete: "); scanf("%s", acc); for(i = 0; i < count; i++) { if(strcmp(b[i].accNo, acc) == 0 && b[i].status == 1) { b[i].status = 0; printf("Account deleted successfully!n"); found = 1; break; } }
  • 8.
    Pitch deck title8 7/14/20XX // Search Account void searchAccount() { if(count == 0) { printf("No accounts exist.n"); return; } char acc[19]; int found = 0; printf("Enter Account Number to search: "); scanf("%s", acc); for(i = 0; i < count; i++) { if(strcmp(b[i].accNo, acc) == 0) { printf("nAccount Number: %s", b[i].accNo); printf("nName: %s", b[i].name); printf("nBalance: %.2f", b[i].balance); printf("nStatus: %sn", b[i].status ? "Active" : "Deleted"); found = 1; break; } } if(found == 0) printf("Account not found!n"); }
  • 9.
    Pitch deck title9 7/14/20XX // Edit Account Information void editAccount() { if(count == 0) { printf("No accounts exist.n"); return; } char acc[19]; int found = 0; printf("Enter Account Number to edit: "); scanf("%s", acc); for( i = 0; i < count; i++) { if(strcmp(b[i].accNo, acc) == 0 && b[i].status == 1) printf("Enter New Balance: "); scanf("%f", &b[i].balance); printf("Account updated successfully!n"); found = 1; break; } } if(found == 0) printf("Active account not found!n"); }
  • 10.
    Pitch deck title10 7/14/20XX // Show Active Accounts void showActiveAccounts() { int found = 0; printf("n--- Active Accounts ---n"); for(i = 0; i < count; i++) { if(b[i].status == 1) { printf("AccNo: %s | Name: %s | Balance: %.2fn", b[i].accNo, b[i].name, b[i].balance); found = 1; } } if(found==0) printf("No active accounts.n"); } // Show Deleted Accounts void showDeletedAccounts() { int found = 0; printf("n--- Deleted Accounts ---n"); for( i = 0; i < count; i++) { if(b[i].status == 0) { printf("AccNo: %s | Name: %sn", b[i].accNo, b[i].name); found = 1; } } if(found==0) printf("No deleted accounts.n"); }
  • 11.
    Pitch deck title11 7/14/20XX
  • 12.
    Pitch deck title12 7/14/20XX
  • 13.
    Pitch deck title13 7/14/20XX
  • 14.
    Pitch deck title14 7/14/20XX
  • 15.
    Pitch deck title15 7/14/20XX THANK YOU!!