0% found this document useful (0 votes)
26 views30 pages

Dsu Project

This document provides a project report on a Bank Management System created using C programming language. It includes an index, acknowledgements, requirements, introduction to C, source code, outputs, and conclusion sections. The project allows users to perform basic banking tasks like account creation, depositing and withdrawing amounts, checking balances, and modifying accounts using a simple program built with C.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views30 pages

Dsu Project

This document provides a project report on a Bank Management System created using C programming language. It includes an index, acknowledgements, requirements, introduction to C, source code, outputs, and conclusion sections. The project allows users to perform basic banking tasks like account creation, depositing and withdrawing amounts, checking balances, and modifying accounts using a simple program built with C.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

A

PROJECT REPORT ON
“Bank Management System”
SUBMITTED BY
Mr. WAGH TEJAS RAJENDRA
Mr. WAGH AYUSH RAVINDRA
Mr. PRITAM BHARATWAJ WABLE
Mr. KADAM AASHISH KISHOR

Under the guidance of


Prof . Miss SIMRAN PATHAN

DEPARTMENT OF COMPUTER TECHNOLOGY


Sanjivani Rural Education Society’s

SANJIVANI K.B.P POLYTECHNIC

KOPARGAON : 423603,DIST: AHMEDNAGAR

➢ Bank Management System. Page 1


CERTIFICATE
This is certify that the project report entitied
“Bank Management System”
SUBMITTED BY

Mr. WAGH TEJAS RAJENDRA


Mr. WAGH AYUSH RAVINDRA
Mr. PRITAM BHARATWAJ WABLE
Mr. KADAM AASHISH KISHOR

Of Third semester of Diploma in ‘Computer Technology’ institute of Sanjivani


K.B.P Polytechnic Kopargaon has submitted the Micro-project satisfactorily in
subject “Data Structure Using ‘C’” for academic year 2022 to 2023 as prescribed
in the curriculum.

Place: - Kopargaon

Date: ----------------

Subject Teacher HOD Principal

➢ Bank Management System. Page 2


INDEX
Sr.No Point Name

1. Acknowledgment

2. Requirements

3. About C

4. Introduction

5. Program source code

6 Output

7 Conclusion

8 Reference

➢ Bank Management System. Page 3


ACKNOWLEDGMENT

We would take this opportunity to express our sincere thanks and gratitude to our
Project Guide Prof. Miss SIMRAN PATHAN , Department of Computer Technology,
Sanjivani K.B.P. Polytechnic, Kopargaon. For her vital guidance and support in completing
this project. Lots of thanks to Head of Computer technology Department Prof. G.N. Jorvekar
for providing us the best support we ever had. We like to express our sincere gratitude to Mr.
A. R. Mirikar, Principal, of Sanjivani K.B.P. Polytechnic, Kopargaon for providing a great
platform to complete the project within the scheduled time. Last but not the least; we would
like to say thanks to our family and friends for their never ending love, help, and support in so
many ways through all this time.
A big thanks to all who have willingly helped us out with their ability.

Mr. WAGH TEJAS RAJENDRA


Mr. WAGH AYUSH RAVINDRA
Mr. PRITAM BHARATWAJ WABLE
Mr. KADAM AASHISH KISHOR

➢ Bank Management System. Page 4


REQUIREMENTS

HARDWARE:
Processor with minimum 50GB hard disk
3 GB RAM

SOFTWARE:
Windows 10

ANY OTHER RESOURCE USED :


Turbo C++ 3.0 Version & Dosbox
Visual studio code

➢ Bank Management System. Page 5


ABOUT ‘C’

ATM Management System using C


ATMs are Automated Teller Machines that are used to carry day-to-day financial
transactions. ATMs can be used to withdraw money or to deposit money or even to know the
information of an account like the balance amount, etc. They are convenient and easy to
use,and it allows consumers to perform quick self-service transactions.

In this article, we will discuss the ATM Management System in C which is an application
that provides users with every aspect that an actual Automated Teller Machine i.e.,
Automated Teller Machine (ATM) also known as ABM (Automated Banking Machine) is a
banking system. This banking system allows customers or users to have access to financial
transactions. These transactions can be done in public space without any need for a clerk,
cashier, or bank teller. Working and description of the ATM can be explained with the help
of the Use Case Diagram.
We will understand about designing the use case diagram for the ATM system. Some
scenarios of the system are as follows.

Step-1:
The user is authenticated when enters the plastic ATM card in a Bank ATM. Then enters the
user name and PIN (Personal Identification Number). For every ATM transaction, a
Customer Authentication use case is required and essential. So, it is shown as include
relationship.

➢ Bank Management System. Page 6


INTRODUCTION
Bank Management System Program in C
If you are looking for small school or college level project, this Bank
Management System can be a good start. This is a simple project where you can
implement a banking system which has following features:

• Account management: Create and Delete accounts.


• Deposit amount.
• Withdraw amount.
• Balance enquiry.
• Modify existing accounts.
• List all accounts.
The program is really simple, we have a Class name ‘account’ where we have
are required methods each for implementing a feature, I’ll not go through the
entire code as it is easily to understand. Anyone with basic knowledge of
programming can understand the code modify it as per his needs.

➢ Bank Management System. Page 7


PROGRAM SOURCE CODE

#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
#include <stdbool.h>
int i,j;
int main_exit;
void menu();
int atm();
void close();
struct date{
int month,day,year;

};
struct {

char name[60];
int acc_no,age;
char address[60];
char citizenship[15];
double phone;
char acc_type[10];
float amt;
struct date dob;
struct date deposit;
struct date withdraw;

}add,upd,check,rem,transaction;

float interest(float t,float amount,int rate)


{
float SI;
SI=(rate*t*amount)/100.0;
return (SI);

}
void fordelay(int j)
{ int i,k;
for(i=0;i<j;i++)
k=i;
}

void new_acc()

➢ Bank Management System. Page 8


{
int choice;
FILE *ptr;

ptr=fopen("record.dat","a+");
account_no:
system("cls");
printf("\t\t\t==== ADD RECORD ====");
printf("\n\n\nEnter today's date(mm/dd/yyyy):");
scanf("%d/%d/%d",&add.deposit.month,&add.deposit.day,&add.deposit.year);
printf("\nEnter the account number:");
scanf("%d",&check.acc_no);
while(fscanf(ptr,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",&add.acc_no,add.name,&add.dob.month,&add.dob.day,&add.dob.year,&add.
age,add.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&a
dd.deposit.day,&add.deposit.year)!=EOF)
{
if (check.acc_no==add.acc_no)
{printf("Account no. already in use!");
fordelay(1000000000);
goto account_no;

}
}
add.acc_no=check.acc_no;
printf("\nEnter the name:");
scanf("%s",add.name);
printf("\nEnter the date of birth(mm/dd/yyyy):");
scanf("%d/%d/%d",&add.dob.month,&add.dob.day,&add.dob.year);
printf("\nEnter the age:");
scanf("%d",&add.age);
printf("\nEnter the address:");
scanf("%s",add.address);
printf("\nEnter the citizenship number:");
scanf("%s",add.citizenship);
printf("\nEnter the phone number: ");
scanf("%lf",&add.phone);
printf("\nEnter the amount to deposit:rs");
scanf("%f",&add.amt);
printf("\nType of account:\n\t#Saving\n\t#Current\n\t#Fixed1(for 1 year)\n\t#Fixed2(for 2
years)\n\t#Fixed3(for 3 years)\n\n\tEnter your choice:");
scanf("%s",add.acc_type);

fprintf(ptr,"%d %s %d/%d/%d %d %s %s %lf %s %f


%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,add.a

➢ Bank Management System. Page 9


ddress,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);

fclose(ptr);
printf("\nAccount created successfully!");
add_invalid:
printf("\n\n\n\t\tEnter 1 to go to the main menu and 0 to exit:");
scanf("%d",&main_exit);
system("cls");
if (main_exit==1)
menu();
else if(main_exit==0)
close();
else
{
printf("\nInvalid!\a");
goto add_invalid;
}
}
void view_list()
{
FILE *view;
view=fopen("record.dat","r");
int test=0;
system("cls");
printf("\nACC. NO.\tNAME\t\t\tADDRESS\t\t\tPHONE\n");

while(fscanf(view,"%d %s %d/%d/%d %d %s %s %lf %s %f


%d/%d/%d",&add.acc_no,add.name,&add.dob.month,&add.dob.day,&add.dob.year,&add.ag
e,add.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add
.deposit.day,&add.deposit.year)!=EOF)
{
printf("\n%6d\t
%10s\t\t\t%10s\t\t%.0lf",add.acc_no,add.name,add.address,add.phone);
test++;
}

fclose(view);
if (test==0)
{ system("cls");
printf("\nNO RECORDS!!\n");}

view_list_invalid:
printf("\n\nEnter 1 to go to the main menu and 0 to exit:");
scanf("%d",&main_exit);
➢ Bank Management System. Page 10
system("cls");
if (main_exit==1)
menu();
else if(main_exit==0)
close();
else
{
printf("\nInvalid!\a");
goto view_list_invalid;
}
}
void edit(void)
{
int choice,test=0;
FILE *old,*newrec;
old=fopen("record.dat","r");
newrec=fopen("new.dat","w");

printf("\nEnter the account no. of the customer whose info you want to change:");
scanf("%d",&upd.acc_no);
while(fscanf(old,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d",&add.acc_no,add.name,&add.dob.month,&add.dob.day,&add.dob.year,&add.ag
e,add.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add
.deposit.day,&add.deposit.year)!=EOF)
{
if (add.acc_no==upd.acc_no)
{ test=1;
printf("\nWhich information do you want to change?\n1.Address\n2.Phone\n\nEnter
your choice(1 for address and 2 for phone):");
scanf("%d",&choice);
system("cls");
if(choice==1)
{printf("Enter the new address:");
scanf("%s",upd.address);
fprintf(newrec,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,upd.a
ddress,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);
system("cls");
printf("Changes saved!");
}
else if(choice==2)
{
printf("Enter the new phone number:");
scanf("%lf",&upd.phone);

➢ Bank Management System. Page 11


fprintf(newrec,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,add.a
ddress,add.citizenship,upd.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);
system("cls");
printf("Changes saved!");
}

}
else
fprintf(newrec,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,add.a
ddress,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);
}
fclose(old);
fclose(newrec);
remove("record.dat");
rename("new.dat","record.dat");

if(test!=1)
{ system("cls");
printf("\nRecord not found!!\a\a\a");
edit_invalid:
printf("\nEnter 0 to try again,1 to return to main menu and 2 to exit:");
scanf("%d",&main_exit);
system("cls");
if (main_exit==1)

menu();
else if (main_exit==2)
close();
else if(main_exit==0)
edit();
else
{printf("\nInvalid!\a");
goto edit_invalid;}
}
else
{printf("\n\n\nEnter 1 to go to the main menu and 0 to exit:");
scanf("%d",&main_exit);
system("cls");
if (main_exit==1)
menu();
else
close();
➢ Bank Management System. Page 12
}
}

void transact(void)
{ int choice,test=0;
FILE *old,*newrec;
old=fopen("record.dat","r");
newrec=fopen("new.dat","w");

printf("Enter the account no. of the customer:");


scanf("%d",&transaction.acc_no);
while (fscanf(old,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d",&add.acc_no,add.name,&add.dob.month,&add.dob.day,&add.dob.year,&add.ag
e,add.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add
.deposit.day,&add.deposit.year)!=EOF)
{

if(add.acc_no==transaction.acc_no)
{ test=1;

if(strcmpi(add.acc_type,"fixed1")==0||strcmpi(add.acc_type,"fixed2")==0||strcmpi(add.acc_t
ype,"fixed3")==0)
{
printf("\a\a\a\n\nYOU CANNOT DEPOSIT OR WITHDRAW CASH IN FIXED
ACCOUNTS!!!!!");
fordelay(1000000000);
system("cls");
menu();

}
printf("\n\nDo you want to\n1.Deposit\n2.Withdraw?\n\nEnter your choice(1 for deposit and
2 for withdraw):");
scanf("%d",&choice);
if (choice==1)
{
printf("Enter the amount you want to deposit:rs ");
scanf("%f",&transaction.amt);
add.amt+=transaction.amt;
fprintf(newrec,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,add.a
ddress,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);
printf("\n\nDeposited successfully!");
}
else
{
➢ Bank Management System. Page 13
printf("Enter the amount you want to withdraw:rs ");
scanf("%f",&transaction.amt);
add.amt-=transaction.amt;
fprintf(newrec,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,add.a
ddress,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);
printf("\n\nWithdrawn successfully!");
}

}
else
{
fprintf(newrec,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,add.a
ddress,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);
}
}
fclose(old);
fclose(newrec);
remove("record.dat");
rename("new.dat","record.dat");
if(test!=1)
{
printf("\n\nRecord not found!!");
transact_invalid:
printf("\n\n\nEnter 0 to try again,1 to return to main menu and 2 to exit:");
scanf("%d",&main_exit);
system("cls");
if (main_exit==0)
transact();
else if (main_exit==1)
menu();
else if (main_exit==2)
close();
else
{
printf("\nInvalid!");
goto transact_invalid;
}

}
else
{
printf("\nEnter 1 to go to the main menu and 0 to exit:");
➢ Bank Management System. Page 14
scanf("%d",&main_exit);
system("cls");
if (main_exit==1)
menu();
else
close();
}

}
void erase(void)
{
FILE *old,*newrec;
int test=0;
old=fopen("record.dat","r");
newrec=fopen("new.dat","w");
printf("Enter the account no. of the customer you want to delete:");
scanf("%d",&rem.acc_no);
while (fscanf(old,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d",&add.acc_no,add.name,&add.dob.month,&add.dob.day,&add.dob.year,&add.ag
e,add.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add
.deposit.day,&add.deposit.year)!=EOF)
{
if(add.acc_no!=rem.acc_no)
fprintf(newrec,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.age,add.a
ddress,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,ad
d.deposit.year);

else
{test++;
printf("\nRecord deleted successfully!\n");
}
}
fclose(old);
fclose(newrec);
remove("record.dat");
rename("new.dat","record.dat");
if(test==0)
{
printf("\nRecord not found!!\a\a\a");
erase_invalid:
printf("\nEnter 0 to try again,1 to return to main menu and 2 to exit:");
scanf("%d",&main_exit);

if (main_exit==1)
menu();
➢ Bank Management System. Page 15
else if (main_exit==2)
close();
else if(main_exit==0)
erase();
else
{printf("\nInvalid!\a");
goto erase_invalid;}
}
else
{printf("\nEnter 1 to go to the main menu and 0 to exit:");
scanf("%d",&main_exit);
system("cls");
if (main_exit==1)
menu();
else
close();
}

void see(void)
{
FILE *ptr;
int test=0,rate;
int choice;
float time;
float intrst;
ptr=fopen("record.dat","r");
printf("Do you want to check by\n1.Account no\n2.Name\nEnter your choice:");
scanf("%d",&choice);
if (choice==1)
{ printf("Enter the account number:");
scanf("%d",&check.acc_no);

while (fscanf(ptr,"%d %s %d/%d/%d %d %s %s %lf %s %f


%d/%d/%d",&add.acc_no,add.name,&add.dob.month,&add.dob.day,&add.dob.year,&add.ag
e,add.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add
.deposit.day,&add.deposit.year)!=EOF)
{
if(add.acc_no==check.acc_no)
{ system("cls");
test=1;

printf("\nAccount NO.:%d\nName:%s \nDOB:%d/%d/%d \nAge:%d \nAddress:%s


\nCitizenship No:%s \nPhone number:%.0lf \nType Of Account:%s \nAmount deposited:rs
%.2f \nDate Of
➢ Bank Management System. Page 16
Deposit:%d/%d/%d\n\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.
age,add.address,add.citizenship,add.phone,
add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.deposit.year);
if(strcmpi(add.acc_type,"fixed1")==0)
{
time=1.0;
rate=9;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs%.2f as interest on
%d/%d/%d",intrst,add.deposit.month,add.deposit.day,add.deposit.year+1);
}
else if(strcmpi(add.acc_type,"fixed2")==0)
{
time=2.0;
rate=11;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs.%.2f as interest on
%d/%d/%d",intrst,add.deposit.month,add.deposit.day,add.deposit.year+2);

}
else if(strcmpi(add.acc_type,"fixed3")==0)
{
time=3.0;
rate=13;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs.%.2f as interest on
%d/%d/%d",intrst,add.deposit.month,add.deposit.day,add.deposit.year+3);

}
else if(strcmpi(add.acc_type,"saving")==0)
{
time=(1.0/12.0);
rate=8;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs.%.2f as interest on %d of every month",intrst,add.deposit.day);

}
else if(strcmpi(add.acc_type,"current")==0)
{

printf("\n\nYou will get no interest\a\a");

}
}
➢ Bank Management System. Page 17
}
else if (choice==2)
{ printf("Enter the name:");
scanf("%s",&check.name);
while (fscanf(ptr,"%d %s %d/%d/%d %d %s %s %lf %s %f
%d/%d/%d",&add.acc_no,add.name,&add.dob.month,&add.dob.day,&add.dob.year,&add.ag
e,add.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add
.deposit.day,&add.deposit.year)!=EOF)
{
if(strcmpi(add.name,check.name)==0)
{ system("cls");
test=1;
printf("\nAccount No.:%d\nName:%s \nDOB:%d/%d/%d \nAge:%d \nAddress:%s
\nCitizenship No:%s \nPhone number:%.0lf \nType Of Account:%s \nAmount
deposited:rs%.2f \nDate Of
Deposit:%d/%d/%d\n\n",add.acc_no,add.name,add.dob.month,add.dob.day,add.dob.year,add.
age,add.address,add.citizenship,add.phone,
add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.deposit.year);
if(strcmpi(add.acc_type,"fixed1")==0)
{
time=1.0;
rate=9;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs.%.2f as interest on
%d/%d/%d",intrst,add.deposit.month,add.deposit.day,add.deposit.year+1);
}
else if(strcmpi(add.acc_type,"fixed2")==0)
{
time=2.0;
rate=11;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs.%.2f as interest on
%d/%d/%d",intrst,add.deposit.month,add.deposit.day,add.deposit.year+2);

}
else if(strcmpi(add.acc_type,"fixed3")==0)
{
time=3.0;
rate=13;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs.%.2f as interest on
%d/%d/%d",intrst,add.deposit.month,add.deposit.day,add.deposit.year+3);

}
else if(strcmpi(add.acc_type,"saving")==0)
{
➢ Bank Management System. Page 18
time=(1.0/12.0);
rate=8;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get rs.%.2f as interest on %d of every month",intrst,add.deposit.day);

}
else if(strcmpi(add.acc_type,"current")==0)
{

printf("\n\nYou will get no interest\a\a");

}
}
}

fclose(ptr);
if(test!=1)
{ system("cls");
printf("\nRecord not found!!\a\a\a");
see_invalid:
printf("\nEnter 0 to try again,1 to return to main menu and 2 to exit:");
scanf("%d",&main_exit);
system("cls");
if (main_exit==1)
menu();
else if (main_exit==2)
close();
else if(main_exit==0)
see();
else
{
system("cls");
printf("\nInvalid!\a");
goto see_invalid;}
}
else
{printf("\nEnter 1 to go to the main menu and 0 to exit:");
scanf("%d",&main_exit);}
if (main_exit==1)
{
system("cls");
menu();
}
➢ Bank Management System. Page 19
else
{

system("cls");
close();
}

void close(void)
{
printf("\n\n\n\n CODE BY MD,MS,INJMAM,ADITYA");
}

void menu(void)
{ int choice;
system("cls");
system("color 7");
printf("\n\n\t\t\t SANJIVANI BANKING MANAGEMENT SYSTEM");
printf("\n\n\n\t\t\t******* WELCOME TO THE MAIN MENU *******");
printf("\n\n\t\t[1] Create a new account\n\t\t[2] Update information of existing
account\n\t\t[3] Transactions\n\t\t[4] Check the details of existing account\n\t\t[5] Remove
existing account\n\t\t[6] View customer's list\n\t\t[7] ATM Feature\n\t\t[8] Exit\n\n\n\t\t Enter
your choice:");
scanf("%d",&choice);

system("cls");
switch(choice)
{
case 1:new_acc();
break;
case 2:edit();
break;
case 3:transact();
break;
case 4:see();
break;
case 5:erase();
break;
case 6:view_list();
break;
case 7:atm();
break;
➢ Bank Management System. Page 20
case 8:close();
break;
}

}
int main()
{
char MD[10],password[10]="MD";
int i=0;
printf("\n\n\n\t\t\t\t SANJIVANI Bank Management System\n\t\t\t\t\t User Login ");
printf("\n\n\n\n\n\t\t\t\tEnter the password to login:");
scanf("%s",MD);

if (strcmp(MD,password)==0)
{printf("\n\nPassword Match!\nLOADING");
for(i=0;i<=6;i++)
{
fordelay(100000000);
printf(". ");
}
printf("\n");
system("pause");
system("cls");

menu();
}
else
{ printf("\n\nWrong password!!\a\a\a");
login_try:
printf("\nEnter 1 to try again and 0 to exit:");
scanf("%d",&main_exit);
if (main_exit==1)
{

system("cls");
main();
}

else if (main_exit==0)
{
system("cls");
close();}
else
{printf("\nInvalid!");
➢ Bank Management System. Page 21
fordelay(1000000000);
system("cls");
goto login_try;}

}
return 0;
}

int atm(){

void mainMenu();
void checkBalance(float balance);
float moneyDeposit(float balance);
float moneyWithdraw(float balance);
void menuExit();
void errorMessage();

int login(void)
{
float number = 4065;
int MD;
printf("\n\n\t\t\tEnter the PIN No:");
scanf("%d", &MD);

if (MD == number)
{
printf("\n\nPIN Matched!\nLOADING");
for(i=0;i<=6;i++)
{
fordelay(100000000);
printf(".");
}
system("cls");
mainMenu();
}
else
{
printf("Invalid\n Try Again");
login();
}
return 0;
}

➢ Bank Management System. Page 22


int option;
float balance = 15000.00;
int choose;
bool again = true;

login();
while (again) {

printf("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
printf("Your Selection:\t");
scanf("%d", &option);
system("CLS");

switch (option) {
case 1:
checkBalance(balance);
break;
case 2:
balance = moneyDeposit(balance);
break;
case 3:
balance = moneyWithdraw(balance);
break;

case 4:
menuExit();
return 0;

default:
errorMessage();
break;
}

printf("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n");
printf("Would you like to do another transaction:\n");
printf("< 1 > Yes\n");
printf("< 2 > No\n");
scanf("%d", &choose);
system("CLS");

if (choose == 2) {
➢ Bank Management System. Page 23
again = false;
menuExit();

}else{
mainMenu();
}

return 0;

void mainMenu() {

printf("\n\n\t\t==========Welcome to SANJIVANI ATM Feature==========\n\n");


printf("\n\t\t----Please choose one of the options below----\n");
printf("\n\t\t< 1 > Check Balance\n");
printf("\n\t\t< 2 > Deposit\n");
printf("\n\t\t< 3 > Withdraw\n");
printf("\n\t\t< 4 > Exit\n\n");

void checkBalance(float balance) {


printf("You Choose to See your Balance\n");
printf("****Your Available Balance is: rs%.2f\n\n", balance);

float moneyDeposit(float balance) {


float deposit;
printf("You choose to Deposit a money\n");
printf("rsrsrsrsYour Balance is: rs%.2f\n\n", balance);
printf("****Enter your amount to Deposit\n");
scanf("%f", &deposit);

balance += deposit;

printf("****Your New Balance is: rs%.2f\n\n", balance);


return balance;

}
➢ Bank Management System. Page 24
float moneyWithdraw(float balance) {
float withdraw;
bool back = true;

printf("You choose to Withdraw a money\n");


printf("rsrsrsrsYour Balance is: rs%.2f\n\n", balance);

while (back) {
printf("Enter your amount to withdraw:\n");
scanf("%f", &withdraw);

if (withdraw < balance) {


back = false;
balance -= withdraw;
printf("rsrsrsrsYour withdrawing money is: rs%.2f\n", withdraw);
printf("****Your New Balance is: rs%.2f\n\n", balance);

else {

printf("+++You don't have enough money+++\n");


printf("Please contact to your Bank Customer Services\n");
printf("****Your Balance is: rs%.2f\n\n", balance);

}
}
return balance;
}

void menuExit() {
printf("--------------Take your receipt!!!------------------\n");
printf("-----Thank you for using SANJIVANI ATM Banking Machine!!!-----\n");
printf("----- BY MD,MS,INJMAM,ADITYA -----\n");
}

void errorMessage() {;
printf("+++!!!You selected invalid number!!!+++\n");
}

➢ Bank Management System. Page 25


OUTPUT

LOGIN

MAIN MEMU

➢ Bank Management System. Page 26


CREATE A NEW ACCOUNT

UPDATE INFORMATION

MONEY WITHDRAW

➢ Bank Management System. Page 27


INFORMATION ABOUT ACCOUNT

ATM SYSTEM

➢ Bank Management System. Page 28


CONCLUSION

Here I have come to end of the project the topic Bank Management System.
I would like to share my experience while doing this project I have learn many things.
It was a wonderful learning experience for me while working on the project.
A very special thanks to Miss Simran Pathan mam who gave a very wonderful project I
hope my project will be interesting and knowledgeable.

➢ Bank Management System. Page 29


REFERENCE
• https://proprogramming.org/bank-management-system-c/
• https://in.search.yahoo.com/search;_ylt=AwrKDdcPOEFjHbwoOLy
7HAx.;_ylc=X1MDMjExNDcyMzAwMwRfcgMyBGZyA21jYWZlZ
QRmcjIDc2ItdG9wBGdwcmlkA0ZSR0tJMnVWUmlXLnRDVmRy
Z1B4aEEEbl9yc2x0AzAEbl9zdWdnAzAEb3JpZ2luA2luLnNlYXJja
C55YWhvby5jb20EcG9zAzAEcHFzdHIDBHBxc3RybAMwBHFzd
HJsAzQyBHF1ZXJ5A2ludHJvZHVjdGlvbiUyMGJhbmslMjBtYW
5hZ2VtZW50JTIwc3lzdGVtJTIwaW4lMjBjJTJCJTJCBHRfc3Rtc
AMxNjY1MjE4NTk2?p=introduction+bank+management+system+
in+c%2B%2B&fr2=sb-top&fr=mcafee&vm=r&type=E211IN885G0

➢ Bank Management System. Page 30

You might also like