SlideShare a Scribd company logo
Content To Preview
1. Certificate
2. Acknowledgement
3. Header Files
4. Coding
5. Outputs
6. End page
KENDRIYA VIDYALAYA NO.1
HARNI ROAD VADODARA
CERTIFICATE
This is to certify that NAMAN DEO and BHAVESH KUMAR of Class XII Science
has prepared the computer science project entitled “Bank Management System”
This report is result of their efforts and endeavors.
This report is found worthy of acceptance as final project report for subject
Computer Science of Class XII Science. They have prepared the report under the
guidance of.
Sir S.R. Jhaveri
PGT (Comp. Sc.)
Kendriya Vidyalaya No. 1
Harni Road Vadodara
Header Files
• iostream.h
• conio.h
• stdio.h
• process.h
• fstream.h
• ctype.h
Coding
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
#include<ctype.h>
class account
{
int acno;
char name[50]
int deposit, withdraw;
char type;
public:
void create_account()
{
cout<<"n Enter The account No.";
cin>>acno;
cout<<"nn Enter The Name of The account Holder";
gets(name);
cout<<"n Enter Type of The account (C/S)".
cin>>type;
type= toupper(type):
cout<<"n Enter The Initial amount(>=500 for Saving
and >=1000 for current )";
cin>>deposit;
cout>>"nnn Account Created..";
}
void show account()
{
cout<<"n Account No.: "<<acno;
cout<<"n Account Holder Name:";
puts(name);
cout<<" n Type of Account: "<<type;
cout<<"n Balance amount: "<<deposit:
}
void modify account()
{
cout<<"n Account No, : "<<acno;
cout<"n Modify Account Holder Name:";
gets(name);
cout<<“n Modify Type of Account: ";cin>>type;
cout<<"n Modify Balance amount : ";cin>>deposit;
}
void dep(int x)
{
deposit+=x;
void draw(int x)
{
deposit-=x;
}
void report()
{cout<<acno<<"t"<<name<<"tt'<<type<<"tt"<<deposit<<endl;}
int retacno()
{return acno;}
float retdeposit()
{return deposit;}
char rettype()
{return type;}
};
fstream fp;
account ac;
void write account()
{
fp.open("account.dat",ios::out|ios::app);
ac.create_account();
fp.write((char*)&ac,sizeof(account));
fp.close();
}
void display_sp(int n)
{
clrscr();
cout<<"n BALANCE DETAILSn";
int flag=0;
fp.open("account.dat",ios::in);
while(fp.read((char*)&ac,sizeof(account)))
{
if(ac.retacno()==n)
{
ac.show_account();
flag=1;
}
}
fp.close();
if(flag==0)
cout<<"nn Account number does not exist";
getch();
void modify_account()
{
int no,found=0;
clrscr();
cout<<"nnt To Modify ";
cout<<"nnt Enter The account No. of The account";
cin>>no;
fp.open("account.dat",ios::|ios::out);
while(fp.read((char*)&ac.sizeof(account)) &&
found==0)
{
if(ac.retacno()==no)
{
ac.show_account():
cout<<"n Enter The New Details of account"<<endl:
ac.modify_account():
int pos=-1*sizeof(ac);
fp.seekp(pos,ios::cur);
fp.write((char*)&ac,sizeof(account));
cout<<"nnt Record Updated";
found=1;
}
}
fp.close();
if(found==0)
cout<<"nn Record Not Found ";
getch();
}
void delete_account()
{
int no;
clrscr();
cout<<"nnnt Delete Record";
cout<<"nn Enter The account no. of the customer
You Want To Delete":
cin>>no;
fp.open("account.dat",ios:in|ios::out);
fstream fp2;
fp2.open("Temp.dat" ios::out);
fp.seekg(O,ios::beg);
while(fp.read((char)&ac.sizeof(account));
{
if(ac.retacno()!=no)
{
fp2.write((char*)&ac,sizeof(account)):
}
}
fp2.close();
fp.close();
remove("account.dat");
rename("Temp.dat","account.dat");
cout<<"nnt Record Deleted ..";
getch();
void display all()
{
clrscr();
fp.open("account.dat",ios::in);
if(!fp)
{
cout<<"ERROR!! FILE COULD NOT BE OPENEDnnn Go To Admin Menu to
create File";
getch();
return;
}
cout<<"nntt ACCOUNT HOLDER LISTInn";
cout<<"==============================================n";
cout<<"A/c no. t NAMEtt Typett Balancen";
cout<<"==============================================n";
while(fp.read((char*)&ac,sizeof(account)))
{
ac.report();
}
fp.close();
void deposit withdraw(int option)
{
int no,found=0,amt;
clrscr();
cout<<nnt Enter The account No."
cin>>no;
fp.open("account.dat"ios::in|ios::out);
while(fp.read((char*)ac,sizeof(account)) && found=0)
{
if(ac.retacno()==no)
{
ac.show_account();
if(option==1)
{
cout<<"nnt TO DEPOSITE AMOUNT";
cout<<"nn Enter The amount to be deposited";
cin>>amt;
ac.dep(amt);
{
if(option==2)
}
cout<<"nnt TO WITHDRAW AMOUNT";
cout<<"nn Enter The amount to be withdrawn";
cin>>amt;
int bal=ac.retdeposit()-amt;
if((bal<500 && ac.rettype()=='S')||(bal<1000 &&
ac.rettype()=='C'))
cout<<"Insufficient balance";
else
ac.draw(amt);
}
int pos=-1*sizeof(ac);
fp.seekp(pos,ios::cur);
fp.write((char*)&ac,sizeof(account));
cout<<"nnt Record Updated";
found=1;
}
}
fp.close()
if(found==0)
cout<<"nn Record Not Found";
getch();
}
void intro()
{
clrscr();
gotoxy(35,11);
cout<<"BANKING";
gotoxy(35,14);
cout<<"TRANSACTIONS";
gotoxy(35,17);
cout<<"SYSTEM";
cout<"nn MADE BY: CS STUDENTS";
cout<"Inn SCHOOL:KENDRIYA VIDYALAYA
No.1,Vadodara";
getch();
}
void main()
{
char ch;
intro();
do
{
clrscr();
cout<<"nnnt MAIN MENU";
cout<<"nnt01.NEW ACCOUNT";
cout<<"nnt02.DEPOSIT AMOUNT";
cout<<"nnt03.WITHDRAW AMOUNT";
cout<<"nnt04.MODIFY AN ACCOUNT:";
cout<<"nnt05.ALL ACCOUNT HOLDER LIST:";
cout<<"nnt06.CLOSE AN ACCOUNT:";
cout<<"nnt07.MODIFY AN ACCOUNT:";
cout<<"nnt08.EXIT:";
cout<<"nnt Select Your Option(1-8)";
ch=getch();
switch(ch)}
{
case'1':clrscr();
write account();
getch();
break;
case'2':clrscr()
deposit withdraw(1);
break()
case'3':clrscr();
deposit withdraw(2);
getch();
break;
case'4':int num;
clrscr();
cout<<"nnt Enter the Account No.";
cin>>num;
display_sp(num);
break;
case'5':clrscr;
display_all();
getch();
break;
case'5':clrscr;
display_all();
getch();
break;
break;
case'6':delete_account();
break;
case'7':clrscr;
modify_account();
getch();
break;
case'8':exit(0);
default:cout<<"a";
}
}while(ch!='8');
}
Naman Deo and Bhavesh Kumar
Bank Management System
Bank Management System
Bank Management System
Bank Management System
Bank Management System
Bank Management System
Bank Management System
Bank Management System
Bank Management System
Bank Management System

More Related Content

Similar to Bank Management System

C++ coding for Banking System program
C++ coding for Banking System programC++ coding for Banking System program
C++ coding for Banking System program
Harsh Solanki
 
Cbse class-xii-computer-science-projec
Cbse class-xii-computer-science-projecCbse class-xii-computer-science-projec
Cbse class-xii-computer-science-projec
Aniket Kumar
 
Dependency injection - the right way
Dependency injection - the right wayDependency injection - the right way
Dependency injection - the right way
Thibaud Desodt
 
Computer Investigatory Project
Computer Investigatory ProjectComputer Investigatory Project
Computer Investigatory Project
Nishant Jha
 
Computerscience 12th
Computerscience 12thComputerscience 12th
Computerscience 12th
JUSTJOINUS
 
Cbse computer science (c++) class 12 board project bank managment system
Cbse computer science (c++)  class 12 board project  bank managment systemCbse computer science (c++)  class 12 board project  bank managment system
Cbse computer science (c++) class 12 board project bank managment system
pranoy_seenu
 
PHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the testsPHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the tests
Michelangelo van Dam
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
rahulchamp2345
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
SudhanshiBakre1
 
Pratik Bakane C++
Pratik Bakane C++Pratik Bakane C++
Pratik Bakane C++
pratikbakane
 
Railwaynew
RailwaynewRailwaynew
Railwaynew
Arsh Vishwakarma
 
C++ manual Report Full
C++ manual Report FullC++ manual Report Full
C++ manual Report Full
Thesis Scientist Private Limited
 
MTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary Study
MTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary StudyMTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary Study
MTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary Study
Maurício Aniche
 
eSignature Implementation Webinar Slides
eSignature Implementation Webinar SlideseSignature Implementation Webinar Slides
eSignature Implementation Webinar Slides
Julia Ferraioli
 
main.cpp #include iostream #include iomanip #include fs.pdf
main.cpp #include iostream #include iomanip #include fs.pdfmain.cpp #include iostream #include iomanip #include fs.pdf
main.cpp #include iostream #include iomanip #include fs.pdf
arwholesalelors
 
Supersize me
Supersize meSupersize me
Supersize medominion
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
dezyneecole
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
Dezyneecole
 
Hotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh DhimanHotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh Dhiman
AryanSinghDhiman
 

Similar to Bank Management System (20)

C++ coding for Banking System program
C++ coding for Banking System programC++ coding for Banking System program
C++ coding for Banking System program
 
Cbse class-xii-computer-science-projec
Cbse class-xii-computer-science-projecCbse class-xii-computer-science-projec
Cbse class-xii-computer-science-projec
 
Dependency injection - the right way
Dependency injection - the right wayDependency injection - the right way
Dependency injection - the right way
 
Computer Investigatory Project
Computer Investigatory ProjectComputer Investigatory Project
Computer Investigatory Project
 
Computerscience 12th
Computerscience 12thComputerscience 12th
Computerscience 12th
 
Cbse computer science (c++) class 12 board project bank managment system
Cbse computer science (c++)  class 12 board project  bank managment systemCbse computer science (c++)  class 12 board project  bank managment system
Cbse computer science (c++) class 12 board project bank managment system
 
PHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the testsPHPUnit Episode iv.iii: Return of the tests
PHPUnit Episode iv.iii: Return of the tests
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
 
Pratik Bakane C++
Pratik Bakane C++Pratik Bakane C++
Pratik Bakane C++
 
Railwaynew
RailwaynewRailwaynew
Railwaynew
 
C++ manual Report Full
C++ manual Report FullC++ manual Report Full
C++ manual Report Full
 
MTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary Study
MTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary StudyMTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary Study
MTD2014 - Are The Methods In Your DAOs in the Right Place? A Preliminary Study
 
CGI.ppt
CGI.pptCGI.ppt
CGI.ppt
 
eSignature Implementation Webinar Slides
eSignature Implementation Webinar SlideseSignature Implementation Webinar Slides
eSignature Implementation Webinar Slides
 
main.cpp #include iostream #include iomanip #include fs.pdf
main.cpp #include iostream #include iomanip #include fs.pdfmain.cpp #include iostream #include iomanip #include fs.pdf
main.cpp #include iostream #include iomanip #include fs.pdf
 
Supersize me
Supersize meSupersize me
Supersize me
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
Hotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh DhimanHotel Management Presentation by Aryan Singh Dhiman
Hotel Management Presentation by Aryan Singh Dhiman
 

Recently uploaded

Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
egoetzinger
 
when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.
DOT TECH
 
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdfWhich Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
Kezex (KZX)
 
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
bbeucd
 
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
obyzuk
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
marketing367770
 
Patronage and Good Governance 5.pptx pptc
Patronage and Good Governance 5.pptx pptcPatronage and Good Governance 5.pptx pptc
Patronage and Good Governance 5.pptx pptc
AbdulNasirNichari
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
muslimdavidovich670
 
2. Elemental Economics - Mineral demand.pdf
2. Elemental Economics - Mineral demand.pdf2. Elemental Economics - Mineral demand.pdf
2. Elemental Economics - Mineral demand.pdf
Neal Brewster
 
Donald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptxDonald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptx
SerdarHudaykuliyew
 
1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf
Neal Brewster
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
nexop1
 
The European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population agingThe European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population aging
GRAPE
 
Instant Issue Debit Cards
Instant Issue Debit CardsInstant Issue Debit Cards
Instant Issue Debit Cards
egoetzinger
 
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Quotidiano Piemontese
 
What website can I sell pi coins securely.
What website can I sell pi coins securely.What website can I sell pi coins securely.
What website can I sell pi coins securely.
DOT TECH
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
shetivia
 
how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
DOT TECH
 
An Overview of the Prosocial dHEDGE Vault works
An Overview of the Prosocial dHEDGE Vault worksAn Overview of the Prosocial dHEDGE Vault works
An Overview of the Prosocial dHEDGE Vault works
Colin R. Turner
 
how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.
DOT TECH
 

Recently uploaded (20)

Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
 
when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.
 
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdfWhich Crypto to Buy Today for Short-Term in May-June 2024.pdf
Which Crypto to Buy Today for Short-Term in May-June 2024.pdf
 
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
 
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
 
Patronage and Good Governance 5.pptx pptc
Patronage and Good Governance 5.pptx pptcPatronage and Good Governance 5.pptx pptc
Patronage and Good Governance 5.pptx pptc
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
 
2. Elemental Economics - Mineral demand.pdf
2. Elemental Economics - Mineral demand.pdf2. Elemental Economics - Mineral demand.pdf
2. Elemental Economics - Mineral demand.pdf
 
Donald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptxDonald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptx
 
1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf1. Elemental Economics - Introduction to mining.pdf
1. Elemental Economics - Introduction to mining.pdf
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
 
The European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population agingThe European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population aging
 
Instant Issue Debit Cards
Instant Issue Debit CardsInstant Issue Debit Cards
Instant Issue Debit Cards
 
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
 
What website can I sell pi coins securely.
What website can I sell pi coins securely.What website can I sell pi coins securely.
What website can I sell pi coins securely.
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
 
how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
 
An Overview of the Prosocial dHEDGE Vault works
An Overview of the Prosocial dHEDGE Vault worksAn Overview of the Prosocial dHEDGE Vault works
An Overview of the Prosocial dHEDGE Vault works
 
how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.
 

Bank Management System