Bank Management System: Dr. C. V. Raman University

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 40

Bank Management System

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.

As we know that "necessity is the mother of invention", so in today's challenging world,


every system is developed and launched by the use of computer software and
programming.

This computer-based management system is designed to introduce more user


friendliness in the various activities such as record updation, maintenance, and
searching. The searching of record has been made quite simple as all the details of the
customer can be obtained by simply keying in the identification or account number of
that customer. Similarly, record maintenance and updation can also be accomplished by
using the account number with all the details being automatically generated. The entire
information has maintained in the files and whoever wants to retrieve can't retrieve, only
authorization user can retrieve the necessary information.

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.

DR. C. V. RAMAN UNIVERSITY


Bank Management System

Aims & Objectives:


The project that we have undertaken aims to develop a banking system that is clean,
user-friendly and multifunctional. Development of this application includes a number of
fields such that user feels comfortable and the system appears as dynamic to him. The
project "Bank Management System" includes the following functionalities:

Aims of the project:

 Transactions can be done with minimum user events.


 All transactional details and accounts are stored in files on stable storage.
 Customers can view their own account details and can use them as necessary.
 Customer can inquire an account and can inquire about interest.
 All customer, data are stored in files on a stable storage.
 Account holders have to pass through a login system to enter their accounts.
 This system possesses password-protected administrative access; thus,
preventing the whole management system from unauthorized access.
 To provide flexibility for secure and save transaction.
 For better performance.
 Reducing man power.
 For doing work more accurately.
 Faster performance.

Objectives of the project:

 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.

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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.

Disadvantages Of Existing System


 Lack of security of data.
 More man power required.
 Time consuming.
 Needs manual calculations.
 Needs physical storage space.

DR. C. V. RAMAN UNIVERSITY


Bank Management System

PROPOSED SOLUTION

The Bank Management System is an application for maintaining a person's account in a


bank. The system provides the access to the costumer to create an account,
deposit/withdraw the cash from his account. We are mainly concerned with developing a
banking system where a Customer can submit his/her deposit amount to bank if he/she
has an account or can create a new account in this Bank Management System. Customer
can also view the status, update their information, and view account balance. One can
easily maintain the above things if he/she has an account by login through his unique
account number.

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.

Advantages Of Proposed System

 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.

DR. C. V. RAMAN UNIVERSITY


Bank Management System

SYSTEM REQUIRMRNTS

Hardware Requirements:

 Processor : Pentium II and higher.


 RAM : 256 MB or higher.
 Hard Disk Space :100 MB

Software Requirements:

 Operating System : Windows 98 or higher.


 Application : Command Prompt

DR. C. V. RAMAN UNIVERSITY


Bank Management System

MODULES

Sr. MODULE DESCRIPTION


No.
Login User can login to the application by providing
1.
Login ID and Password, if the user does not have
the login id or password, he/she cannot use the
application.

Change Password User can change the current password by choosing


2.
this module. To change the current password to a
new one the user must know the current password.

Menu Menu provides all the functions list that the


3.
application can perform.

Create Account Opens a new account for the user by accepting


4.
inputs such as account number, name, address,
phone no, deposit amount etc.

Update Information Updates the personal information of an account


5.
holder like phone number and address.

Transaction Provide option to deposits or withdraws amount


6.
from the given account number. It also updates the
user remaining amount after the transaction is
complete.

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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.

Remove Account Removes the given account number from the


8.
application with all its details.

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.

ATM Provide option to deposit or withdraw amount from


10.
the atm account.

About Shows the about page of the application.


11.

Exit Quits the application program.


12.

DR. C. V. RAMAN UNIVERSITY


Bank Management System

IMPLEMENTATION AND TESTING

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;

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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()

{
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);

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.addr
ess,add.citizenship,add.phone,add.acc_type,add.amt,add.deposit.month,add.deposit.day,add.depo
sit.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
{
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");

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.age,a
dd.address,add.citizenship,&add.phone,add.acc_type,&add.amt,&add.deposit.month,&add.depos
it.day,&add.deposit.year)!=EOF)
{
printf("\n%6d\t \t\t%10s\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);
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!");
}

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)
{ 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");

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.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==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

printf("Enter the amount you want to withdraw:$ ");


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

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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(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:$ %.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);
}
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)
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)
{

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

}
}
}
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)
{

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

}
}
}

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");

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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;

// insert code here...


login();
while (again) {

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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

DR. C. V. RAMAN UNIVERSITY


Bank Management System

return 0;

}//main code

//Functions

void mainMenu() {

printf("\n\n\t\t==========Welcome to 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");

}//Main Menu

void checkBalance(float balance) {


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

}//Check Balance

float moneyDeposit(float balance) {


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

balance += deposit;

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


return balance;

DR. C. V. RAMAN UNIVERSITY


Bank Management System

}//money deposit

float moneyWithdraw(float balance) {


float withdraw;
bool back = true;

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


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

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

if (withdraw < balance) {


back = false;
balance -= withdraw;
printf("$$$$Your withdrawing money is: $%.2f\n", withdraw);
printf("****Your New Balance is: $%.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: $%.2f\n\n", balance);

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

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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

printf("\n\t\t\t|| Maximum 10 characters are allowed ||");


printf("\n\t\t\t||==============================================||");
fscanf(pas,"%s" ,pass);fclose(pas);

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

DR. C. V. RAMAN UNIVERSITY


Bank Management System

* Main Menu:

*Password Menu:

DR. C. V. RAMAN UNIVERSITY


Bank Management System

* Create Account:

DR. C. V. RAMAN UNIVERSITY


Bank Management System

* All Accounts List:

* Account Details:

DR. C. V. RAMAN UNIVERSITY


Bank Management System

* Delete Account:

CONCLUSION AND FUTURE WORK

“Bank Management System” is a computer application program developed for Desktop


Computers and Laptops. 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. 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.

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:

DR. C. V. RAMAN UNIVERSITY


Bank Management System

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:

* A new and improved graphical layout for the program.


* Money Transfer feature from one account to other.
* Make an online version of the program.

REFERENCES

Websites:

 https://www.code.net/

 https://www.slideshare.net/unsajawaid/documentation-on-bank-management-system

DR. C. V. RAMAN UNIVERSITY

You might also like