Bank Management System: Dr. C. V. Raman University
Bank Management System: Dr. C. V. Raman University
Bank Management System: Dr. C. V. Raman University
INTRODUCTION
A bank is a commercial or state institution that provides financial services, including
issuing money in form of coins, banknotes or debit cards, receiving deposits of money,
lending money and processing transactions.
In today's world, the way of functioning and managing the system has been totally
changed. There are a sudden and abrupt changes in the structure, maintenance and
modification, handling, leveling inside every system. Without managing system through
computer applications and programming, the development of infrastructures is
unfinished. There are many errors and drawbacks without use of computer programming
and applications.
The application provides the access to the user to create an account, deposit/withdraw
the cash from his account, also to view reports of all accounts present. The customers
can access their Account details and perform the transactions on account as per their
requirements.
Now a day’s, managing a bank is tedious job up to certain limit. So, software that
reduces the work is essential. Also, today’s world is a genuine computer world and is
getting faster and faster day-by-day. Thus, considering above necessities, the software
for bank management has become necessary which would be useful in managing the
bank more efficiently.
To allow only authorized user to access various function and processed available
in the system.
Locate any A/C wanted by the user.
Reduced clerical work as most of the work done by computer.
Provide greater speed & reduced time consumption.
EXISTING SYSTEM
In the existing Bank Management System, the user’s list, records, personal details,
transaction details and other information are recorded in books and files and kept in a
room. That means, the bank has to provide a physical space for record keeping and has
to hire a person for maintenance and safekeeping of this record books. The bank also
needs to purchase books and files for record keeping, this adds more to the bank’s
expenses. As the records are written in books and files, it becomes difficult and time
consuming for the bank employee to search, update or delete a record. In this system,
transactions are calculated and recorded manually which makes this system more prone
to errors. All changes are done manually and it is less secure as anyone that have access
to the record room can see the records of all the customers of the bank. To avoid these
limitations and make the Bank Management System proper and more accurate it needs
to be computerized.
PROPOSED SOLUTION
The application will be extremely beneficial for the Customers intending to use and
operate their bank account and will get various benefits in the field of management of
accounts on a clean and user-friendly platform. "Bank Account System", is a simple
application, which is especially generated and designed for the bank in order to enter the
applicant information about his or her bank account and can perform other function like
atm feature. It is user name and ID protected as well.
Compared to the existing system, this Bank Management System is fast, more secure,
reliable, cost effective and needs no physical storage space and only need a computer to
operate.
It creates a user-friendly environment where a normal user can access through all
the benefits of the system.
It provides security from unauthorized access only authorized users are access
granted to the system.
It increases efficiency and saves the time.
No any danger and obstacles from external entities.
Easy access of saved data inside the system.
It is cost effective.
It has ease of use along with complete reference.
It is secure and less time consuming; hence time wastage can be avoided.
SYSTEM REQUIRMRNTS
Hardware Requirements:
Software Requirements:
MODULES
Account Details Shows all the details of the account holder like
7.
name, address, phone number, current balance etc.,
by accepting his account number. Display only one
account detail at a time.
View List Displays the list of all the customer who created an
9.
account in the application with their respective
account number, name, address and phone number.
Coding:
#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
#include <stdbool.h>
int i,j;
int main_exit;
void menu();
void about();
int atm();
void close();
void login();
void fpass();
void chpass();
char username[11],password[11],name[11]="suraj",pass[11]="pal";
char ch,qa[15],qc[15];
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;
}
void fordelay(int j)
{ int i,k;
for(i=0;i<j;i++)
k=i;
}
void new_acc()
{
int choice;
FILE *ptr;
ptr=fopen("record.dat","a+");
account_no:
system("cls");
printf("\t\t\t==== ADD RECORD ====");
printf("\n\t||==============================================||");
SYSTEMTIME stime;
GetSystemTime(&stime);
printf("\n DATE:
%d/%d/%d",stime.wDay,stime.wMonth,stime.wYear);
printf("\n\n\t Please use '-' instead of space");
printf("\n\t||==============================================||");
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,&add.dep
osit.day,&add.deposit.year)!=EOF)
{
if (check.acc_no==add.acc_no)
{printf("Account no. already in use!");
DR. C. V. RAMAN UNIVERSITY
Bank Management System
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 nationality:");
scanf("%s",add.citizenship);
printf("\nEnter the phone number: ");
scanf("%lf",&add.phone);
printf("\nEnter the amount to deposit:$");
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);
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
{
DR. C. V. RAMAN UNIVERSITY
Bank Management System
printf("\nInvalid!\a");
goto add_invalid;
}
}
void view_list()
{
int ch;
FILE *view;
view=fopen("record.dat","r");
int test=0;
system("cls");
printf("\nACC. NO.\t\tNAME\t\t\tADDRESS\t\t\t\tPHONE\n");
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);
system("cls");
if (main_exit==1)
menu();
else if(main_exit==0)
close();
else
{
printf("\nInvalid!\a");
goto view_list_invalid;
}
}
DR. C. V. RAMAN UNIVERSITY
Bank Management System
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.age,a
dd.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add.depos
it.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.addr
ess,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.depo
sit.year);
system("cls");
printf("Changes saved!");
}
else if(choice==2)
{
printf("Enter the new phone number:");
scanf("%lf",&upd.phone);
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.addr
ess,add.citizenship,upd.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.dep
osit.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.addr
ess,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.depo
sit.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();
}
}
void transact(void)
DR. C. V. RAMAN UNIVERSITY
Bank Management System
{ int choice,test=0;
FILE *old,*newrec;
old=fopen("record.dat","r");
newrec=fopen("new.dat","w");
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_type
,"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:$ ");
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.addr
ess,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.depo
sit.year);
printf("\n\nDeposited successfully!");
}
else
{
DR. C. V. RAMAN UNIVERSITY
Bank Management System
}
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.addr
ess,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.depo
sit.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:");
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.age,a
dd.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add.depos
it.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.addr
ess,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.depo
sit.year);
else
{test++;
printf("\nRecord deleted successfully!\n");
}
}
fclose(old);
fclose(newrec);
remove("record.dat");
rename("new.dat","record.dat");
if(test==0)
DR. C. V. RAMAN UNIVERSITY
Bank Management System
{
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();
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);
}
else if(strcmpi(add.acc_type,"fixed3")==0)
{
time=3.0;
rate=13;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get $.%.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)
DR. C. V. RAMAN UNIVERSITY
Bank Management System
{
time=(1.0/12.0);
rate=8;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get $.%.2f as interest on %d of every
month",intrst,add.deposit.day);
}
else if(strcmpi(add.acc_type,"current")==0)
{
}
}
}
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.age,a
dd.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add.depos
it.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:$%.2f
\nDate Of
Deposit:%d/%d/%d\n\n",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);
if(strcmpi(add.acc_type,"fixed1")==0)
{
time=1.0;
rate=9;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get $.%.2f as interest on
%d/%d/%d",intrst,add.deposit.month,add.deposit.day,add.deposit.year+1);
DR. C. V. RAMAN UNIVERSITY
Bank Management System
}
else if(strcmpi(add.acc_type,"fixed2")==0)
{
time=2.0;
rate=11;
intrst=interest(time,add.amt,rate);
printf("\n\nYou will get $.%.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 $.%.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 $.%.2f as interest on %d of every
month",intrst,add.deposit.day);
}
else if(strcmpi(add.acc_type,"current")==0)
{
}
}
}
fclose(ptr);
if(test!=1)
DR. C. V. RAMAN UNIVERSITY
Bank Management System
{ 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();
}
else
{
system("cls");
close();
}
void close(void)
{
system("cls");
printf("_________________________________________________________________
_____________________\n");
printf("\n\tThanks for using our Bank Management Sytem\n");
printf("_________________________________________________________________
_____________________");
getch();
}
void menu(void)
{ int choice;
system("cls");
SYSTEMTIME stime;
GetSystemTime(&stime);
system("color F4");
printf(" \t\t\t ================================================");
printf("\n\t\t\t||\t BANKING MANAGEMENT SYSTEM \t ||");
printf("\n\t\t\t||\t DATE: %d/%d/%d\t
||",stime.wDay,stime.wMonth,stime.wYear);
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| \xB2\xB2\xB2\xB2\xB2\xB2\xB2 WELCOME TO THE MAIN MENU
\xB2\xB2\xB2\xB2\xB2\xB2\xB2\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [1] Create a new account \t\t\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [2] Update information of existing account ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [3] Transactions \t\t\t\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [4] Check the details of existing account ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [5] Remove existing account ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [6] View customer's list ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [7] ATM Feature ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [8] About ||");
DR. C. V. RAMAN UNIVERSITY
Bank Management System
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [9]Exit ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t ================================================\n\n");
printf("\n\t\t============================================================
===================\n\t\t Enter your choice [1-9]:");
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;
case 8:about();
break;
case 9:close();
break;
}
}
int main()
{
int i=0,ch;
system("color 09");
SYSTEMTIME stime;
GetSystemTime(&stime);
DR. C. V. RAMAN UNIVERSITY
Bank Management System
system("color F1");
printf(" \t\t\t ================================================");
printf("\n\t\t\t||\t DATE: %d/%d/%d
||",stime.wDay,stime.wMonth,stime.wYear);
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t||\t Welcome To: \t ||");
printf("\n\t\t\t||\t Bank Management System ||");
printf("\n\t\t\t||\t User Login ||");
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| \xB2\xB2\xB2\xB2\xB2\xB2\xB2 WELCOME TO THE LOGIN MENU
\xB2\xB2\xB2\xB2\xB2\xB2\xB2\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [1] Login \t\t\t\t\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [2] Change Password \t\t\t\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [3] Forgot Password? \t\t\t||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [4] About ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t|| [5]Exit ||");
printf("\n\t\t\t||\t\t\t\t\t\t||");
printf("\n\t\t\t ================================================\n\n");
printf("\n\t\t======================================================
=========================\n\t\t Enter your choice [1-9]:");
scanf("%d",&ch);
if(ch==1)
{
login();
}
else if(ch==2)
{
chpass();
}
else if(ch==3)
{
fpass();
}
else if(ch==4)
{
DR. C. V. RAMAN UNIVERSITY
Bank Management System
about();
}
else if(ch==5)
{
close();
}
else
{
printf("Invalid Input");
login_try:
printf("\nEnter 1 to try again and 0 to exit:");
scanf("%d",&ch);
if (ch==1)
{
system("cls");
main();
}
else if (ch==0)
{
system("cls");
close();}
else
{printf("\nInvalid!");
fordelay(1000000000);
system("cls");
goto login_try;}
}
return 0;
}
//ATM FEATURE
int atm(){
//Functions
void mainMenu();
void checkBalance(float balance);
float moneyDeposit(float balance);
float moneyWithdraw(float balance);
void menuExit();
DR. C. V. RAMAN UNIVERSITY
Bank Management System
void errorMessage();
int login(void)
{
float number = 7867;
int pass;
printf("\n\n\t\t\tEnter the PIN No:");
scanf("%d", &pass);
if (pass == 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;
}
//Main Code
//Local Declarations
int option;
float balance = 15000.00;
int choose;
bool again = true;
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) {
again = false;
menuExit();
}else{
mainMenu();
}
return 0;
}//main code
//Functions
void mainMenu() {
}//Main Menu
}//Check Balance
balance += deposit;
}//money deposit
while (back) {
printf("Enter your amount to withdraw:\n");
scanf("%f", &withdraw);
else {
}
}
return balance;
}//money withdraw
void menuExit() {
printf("--------------Take your receipt!!!------------------\n");
printf("-----Thank you for using ATM Banking Machine!!!-----\n");
printf("----- Visit Again -----\n");
}//exit menu
DR. C. V. RAMAN UNIVERSITY
Bank Management System
void errorMessage() {;
printf("+++!!!You selected invalid number!!!+++\n");
}
void about()
{
printf("\t\t\t\t\t\t***BANK MANAGEMENT SYSTEM***\n\n");
printf("_________________________________________________________________
_____________________________________________________\n");
printf("_________________________________________________________________
_____________________________________________________");
printf("\nAbout:\n");
printf("\nThis is a Bank Managenent System program developed in C programming
language and written in Dev C++ 5.11.\n");
printf("In this program there are seven different opetations releted to Bank Management
can be done.\n");
printf("\nIn this program you can do the following operations:\n1.Create a New
Account\n2.Update information of existing account\n3.Do Transactions\n4.Check details of
existing accounts\n5.Delete Existing Accounts\n6.View list of Customers\n7.ATM");
printf("\n\nDeveloped By:\n1.Suraj Pal\t\t\tVesrion: 2.1\n2.Shantanu Gupta\t\tMade
with: Dev C++ 5.11\n3.Javed Aga\t\t\tDate of release: 4-March-2019.\n4.Zaid Shah");
printf("\n_______________________________________________________________
________________________________________________________\n");
printf("_________________________________________________________________
______________________________________________________");
about_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)
main();
else if(main_exit==0)
close();
else
{
printf("\nInvalid!\a");
goto about_invalid;
}
}
void login()
DR. C. V. RAMAN UNIVERSITY
Bank Management System
{
int i,c;
system("cls");
fflush(stdin);
FILE *pas;
pas=fopen("password.txt","r");
if(pas==NULL)
{
printf("File not found\n");
}
else{
fscanf(pas,"%s",pass);
fclose(pas);
}
SYSTEMTIME stime;
GetSystemTime(&stime);
system("color F1");
printf(" \t\t\t ================================================");
printf("\n\t\t\t||\t DATE: %d/%d/%d
||",stime.wDay,stime.wMonth,stime.wYear);
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t||\t Welcome To: \t ||");
printf("\n\t\t\t||\t Bank Management System ||");
printf("\n\t\t\t||\t User Login ||");
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t|| Maximum 10 characters are allowed ||");
printf("\n\t\t\t||==============================================||");
printf("\n\n\n\t\t\t Enter Username: ");
gets(username);
printf("\n\n\t\t\t Enter Password: ");
i=0;
while(1)
{
ch=getch();
if(ch==13){
break;
}
else if(ch==32||ch==9){
continue;
}
else if(ch==8){
if(i>0){
DR. C. V. RAMAN UNIVERSITY
Bank Management System
i--;
password[i]='\0';
printf("\b \b");
}
}
else{
password[i]=ch;
printf("*");
i++;
}
}
password[i]='\0';
printf("\n");
if(strcmp(username,name)==0)
{
if(strcmp(password,pass)==0)
{
printf("\n\nLogin Successful!\nLOADING");
for(i=0;i<=6;i++)
{
fordelay(100000000);
printf(". ");
}
printf("\n");
system("pause");
system("cls");
menu();
}
else{
printf("\n\nInvalid Password");
login_try:
printf("\nEnter 1 to try again and 0 to exit:");
scanf("%d",&c);
if (c==1)
{
system("cls");
login();
system("pause");
}
else if (c==0)
{
system("cls");
close();}
else
{printf("\nInvalid!");
fordelay(1000000000);
system("cls");
goto login_try;}
}
}
else{
printf("Invalid Username");
goto login_try;
}
}
void chpass()
{
int c;
system("cls");
fflush(stdin);
FILE *pas;
pas=fopen("password.txt","r");
if(pas==NULL)
{
printf("File not found");
}
else
{
SYSTEMTIME stime;
GetSystemTime(&stime);
system("color F1");
printf(" \t\t\t ================================================");
printf("\n\t\t\t||\t DATE: %d/%d/%d
||",stime.wDay,stime.wMonth,stime.wYear);
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t||\t Welcome To: \t ||");
printf("\n\t\t\t||\t Bank Management System ||");
printf("\n\t\t\t||\t Change Password||");
printf("\n\t\t\t||==============================================||");
DR. C. V. RAMAN UNIVERSITY
Bank Management System
}fpass()
{
int i;
system("cls");
fflush(stdin);
FILE *forget;
forget=fopen("fpass.txt","r");
if(forget==NULL)
{
printf("File not found");
}
else
{
fscanf(forget,"%s",qa);
fclose(forget);
SYSTEMTIME stime;
GetSystemTime(&stime);
system("color F1");
printf(" \t\t\t ================================================");
printf("\n\t\t\t||\t DATE: %d/%d/%d
||",stime.wDay,stime.wMonth,stime.wYear);
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t||\t Welcome To: \t ||");
printf("\n\t\t\t||\t Bank Management System ||");
printf("\n\t\t\t||\t Forgot Password||");
printf("\n\t\t\t||==============================================||");
printf("\n\t\t\t|| Maximum 10 characters are allowed ||");
printf("\n\t\t\t||==============================================||");
printf("\n\n\n\t\t\tTo get a new password answer the following
questions:\n\n");
fflush(stdin);
printf("\t\t\tEnter your Birthplace: ");
gets(qc);
if(strcmp(qa,qc)==0){
printf("\n\nMatched!\nLOADING");
for(i=0;i<=6;i++)
{
fordelay(100000000);
DR. C. V. RAMAN UNIVERSITY
Bank Management System
printf(". ");
}
system("cls");
chpass();
}
else{
printf("Wrong answers please try again");
}
}
}
Screen Shots:
* Login Menu:
* Main Menu:
*Password Menu:
* Create Account:
* Account Details:
* Delete Account:
Program Weakness:
As we know that no any program can be 100% reliable and efficient So there are also
some drawbacks from my system which are as follows:
It cannot perform all the required functions of a bank, it's simply a record of
accounts of customers.
System is not sharply a, graphical user interface. There is just use of some text
color.
Its not a multi-user and multitasking program. It can't perform various task at a
single time.
Program Strength:
There are many advantages of using this program as it contains various features like:
It is actually a user friendly software; as it is easy to use just follow the instructions
which appears on the screen.
This program needs login-id and password for accessing the user information, only
authorized users are allowed to accesses the internal main system.
Once a record has been saved, duplicate record can't be made. All the record have
different account number so that there will not be any misplace of the records
entered.
Future Work:
In future there can be many extensions to this application. Some of them include:
REFERENCES
Websites:
https://www.code.net/
https://www.slideshare.net/unsajawaid/documentation-on-bank-management-system