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;
} }