Banking System
Banking System
Presented by:
Name –
Roll Code –
Roll No. –
Registration No. –
Session – Page - 1
ACKNOWLEDGEMENT
I wish to express my deep gratitude and sincere thanks to Principal Mr.
College for his encouragement and for all the facilities that he provided
me into his fold for which I shall remain indebted to him. I extend my
project work successfully & for their valuable advice & support, which I
COLLEGE, SESSION ,
Page - 3
CONTENTS
Page - 4
DATA DICTIONARY
HEADER FILES
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<string.h>
#include<stdio.h>
#include<process.h>
MEMBER FUNCTIOINS
Page - 5
INTRODUCTION
the need for a human clerk or bank taller (manpower). Thousands of banks
perform millions of transactions every day and thousands of users used banking
more banks and more staff it means increasing manual work also, we put more
amount of money in bank it is more risky and not much secure. If we developed
Page - 6
branches as well the manpower is reduced and maximum information are stored
if a system provides these basic logics that mean we can develop a new system
that authenticate and validate the user and user can do any type of virtual
transaction any time anywhere in minimum amount of time. One of the most
authentic codes i.e. the customer account number for recognition of any person.
with account and changing the account location in one branch to another branch
in same bank. Day to day life banking system is most useful and important thing in
economical world and which is very useful to develop country as well as economic
the transactions with balance and it check all conditions are satisfied or not in
respective proses. This is the more secure and automatic process which do all the
transaction with accuracy of calculation. In our project we also provide the facility
to link Aadhar with account number and we also provide the facility to change
location of account with branch that mean the user can change the branch which
is convenient for it. They will also change or update data like address, mobile
Page - 7
PRESENT SYSTEM
existing system the no. of staff required for completing the work is more, while the
The data entry process requires the data on the paper, which is then feed into the
application by the operator while doing so; the data entry operator has to look into
the paper again &again and thus the chances of in accuracies in the typed contents
increases. Also, the process includes higher transportation cost, increased handling
cost, more time delays, low accuracy, more usage of resources like registers, books,
papers, etc.
PROPOSED SYSTEM
Hence the requirement is to develop a system that minimizes all these overheads
Page - 8
The basis for the project is to develop a fully automated banking system that
Withdrawal of amount and exporting the outcome back to the client while
considering all the tools and facilities than a client may need for efficient and
effective output.
Page - 9
Benefits of the existing system
In manual system, much storage space for data files is required so to overcome this
database is developed for saving storage space. This s/w saves space and stores
information efficiently. It ends the burden of having large manual filing storage
system.
Page - 10
PROGRAM CODING
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<string.h>
#include<stdio.h>
#include<process.h>
class bank
{
public:
long int accno,acno;
char name[50],type[20];
float balance,amt;
void opening();
void deposit();
void withdrawl();
void enquiry();
void print();
};
void bank::print()
{
int r,c;
for(r=5,c=20;c<=65;c++)
{
gotoxy(c,r);
cout<<"²";
}
for(r=5,c=65;r<=30;r++)
{
gotoxy(c,r);
cout<<"²";
}
for(r=30,c=65;c>=20;c--)
{
gotoxy(c,r);
cout<<"²";
Page - 11
}
for(r=30,c=20;r>=5;r--)
{
gotoxy(c,r);
cout<<"²";
}
}
void bank::opening()
{
print();
char ch,ans;
fstream f1;
f1.open("bank.dat",ios::app|ios::binary);
do
{
clrscr();
gotoxy(32,8);
cout<<"Enter details to open an account";
gotoxy(32,12);
cout<<"Enter account number:";
cin>>accno;
gotoxy(32,14);
cout<<"Enter customer name:";
gets(name);
x:
gotoxy(32,16);
cout<<"Enter account type";
gotoxy(32,17);
cout<<"s.saving";
gotoxy(32,18);
cout<<"c.current";
cin>>ch;
if(ch=='s' || ch=='S')
{
strcpy(type,"Saving");
}
else if(ch=='c' || ch=='C')
{
strcpy(type,"Current");
}
Page - 12
else
{
gotoxy(32,30);
cout<<"Wrong account type... plz enter
correct type\n";
getch();
goto x;
}
y:
gotoxy(32,20);
cout<<"Enter opening amount should be above
1000:";
cin>>balance;
if(balance>=1000)
f1<<accno<<"\t"<<name<<"\t"<<type<<"\t"<<balance<<e
ndl;
else
goto y;
gotoxy(32,24);
cout<<"Want to open more account[y/n]:";
cin>>ans;
}while(ans=='y' || ans=='Y');
f1.close();
}
void bank::deposit()
{
fstream f1,f2;
int p=0,flag=0;
long int ac;
char nm[50],tp[20];
float bal;
f1.open("bank.dat",ios::in|ios::out|ios::binary);
clrscr();
print();
gotoxy(32,16);
cout<<"Enter account no:";
cin>>acno;
if(!f1)
{
Page - 13
cout<<"File not exist.....";
}
else
{
while(!f1.eof())
{
p=f1.tellg();
f1>>accno>>name>>type>>balance;
ac=accno;
strcpy(nm,name);
strcpy(tp,type);
bal=balance;
if(accno==acno)
{
flag=1;
clrscr();
print();
gotoxy(30,14);
cout<<"Balance before deposit\n";
gotoxy(30,16);
cout<<"Balance="<<bal;
gotoxy(30,20);
cout<<"Enter amount to be deposited";
cin>>amt;
bal+=amt;
f1.seekg(p);
f1<<ac<<"\t"<<nm<<"\t"<<tp<<"\t"<<bal<<endl;
gotoxy(30,22);
cout<<"Balance after deposit\n";
gotoxy(30,25);
cout<<"Balance="<<bal<<endl;
getch();
break;
}
}
if(flag==0)
{
cout<<"Record not present.....\n";
}
Page - 14
f1.close();
}
}
void bank::withdrawl()
{
fstream f1,f2;
int p=0,flag=0;
long int ac;
char nm[50],tp[20];
float bal;
f1.open("bank.dat",ios::in|ios::out|ios::binary);
clrscr();
print();
gotoxy(30,16);
cout<<"Enter account no:";
cin>>acno;
if(!f1)
{
cout<<"File not exist.....";
}
else
{
while(!f1.eof())
{
p=f1.tellg();
f1>>accno>>name>>type>>balance;
ac=accno;
strcpy(nm,name);
strcpy(tp,type);
bal=balance;
if(accno==acno)
{
flag=1;
clrscr();
print();
gotoxy(30,14);
cout<<"Balance before withdrawl\n";
gotoxy(30,16);
cout<<"Balance="<<bal;
gotoxy(30,20);
Page - 15
cout<<"Enter amount to be withdrawn";
cin>>amt;
if(bal-amt>=1000)
{
bal-=amt;
f1.seekg(p);
f1<<ac<<"\t"<<nm<<"\t"<<tp<<"\t"<<bal<<endl;
gotoxy(30,22);
cout<<"Balance after withdrawn\n";
gotoxy(30,25);
cout<<"Balance="<<bal<<endl;
getch();
break;
}
else
{
cout<<"Minimum balance should be
1000 in account\n";
getch();
break;
}
}
}
if(flag==0)
{
cout<<"Record not present.....\n";
}
f1.close();
}
}
void bank::balance_enquiry()
{
int flag=0;
fstream f1;
f1.open("bank.dat",ios::in|ios::binary);
if(!f1)
{
cout<<"File not exist...";
getch();
Page - 16
}
else
{
clrscr();
print();
gotoxy(32,16);
cout<<"Enter account no";
cin>>acno;
while(!f1.eof())
{
f1>>accno>>name>>type>>balance;
if(f1.eof())
break;
if(accno==acno)
{
clrscr();
print();
gotoxy(32,8);
cout<<"Account Details";
gotoxy(32,12);
cout<<"Accout no.:"<<accno;
gotoxy(32,14);
cout<<"Customer name :"<<name;
gotoxy(32,16);
cout<<"Account Type :"<<type;
gotoxy(32,18);
cout<<"Balance Amount :"<<balance;
flag=1;
break;
}
}
f1.close();
}
if(flag==0)
cout<<"Record not present";
}
void bank::enquiry()
{
int flag=0;
Page - 17
fstream f1;
f1.open("bank.dat",ios::in|ios::binary);
if(!f1)
{
cout<<"File not exist...";
getch();
}
else
{
clrscr();
print();
gotoxy(32,16);
cout<<"Enter account no";
cin>>acno;
while(!f1.eof())
{
f1>>accno>>name>>type>>balance;
if(f1.eof())
break;
if(accno==acno)
{
clrscr();
print();
gotoxy(32,8);
cout<<"Account Details";
gotoxy(32,12);
cout<<"Accout no.:"<<accno;
gotoxy(32,14);
cout<<"Customer name :"<<name;
gotoxy(32,16);
cout<<"Account Type :"<<type;
gotoxy(32,18);
cout<<"Balance Amount :"<<balance;
flag=1;
break;
}
}
f1.close();
}
if(flag==0)
Page - 18
cout<<"Record not present";
}
void main()
{
clrscr();
bank b;
int ch;
while(1)
{
clrscr();
b.print();
gotoxy(32,8);
cout<<"B A N K";
gotoxy(32,12);
cout<<"1.Open Account";
gotoxy(32,14);
cout<<"2.Deposit Amount";
gotoxy(32,16);
cout<<"3.Withdrawl Amount";
gotoxy(32,18);
cout<<"4.Enquiry";
gotoxy(32,20);
cout<<"5.Exit";
gotoxy(32,25);
cout<<"Enter your choice:";
cin>>ch;
switch(ch)
{
case 1:
b.opening();
break;
case 2:
b.deposit();
break;
case 3:
b.withdrawl();
break;
case 4:
b.enquiry();
getch();
Page - 19
break;
case 5:
exit (0);
}
}
Page - 20
OUTPUT
Page - 21
Page - 22
Page - 23
CONCLUSION
I have successfully designed, develop and implemented this project
institutions.
Coming to the end of the project I would like to thank to my teacher once
Page - 24
BIBLIOGRAPHY
BOOK
INTERNET
WWW.GOOGLE.COM
WWW.TUTORIALPOINTS.COM
APPS
YOU TUBE
Page - 25