SlideShare a Scribd company logo
1 of 34
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

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 me
dominion
 

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

Financial Accounting and Analysis balancesheet.pdf
Financial Accounting and Analysis balancesheet.pdfFinancial Accounting and Analysis balancesheet.pdf
Financial Accounting and Analysis balancesheet.pdf
mukul381940
 
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
atedyxc
 
DSP Gold ETF Fund of Fund PPT - April'2024
DSP Gold ETF Fund of Fund PPT - April'2024DSP Gold ETF Fund of Fund PPT - April'2024
DSP Gold ETF Fund of Fund PPT - April'2024
DSP Mutual Fund
 
Bahawalpur Culture.pptx pptx pptx pttx pttx
Bahawalpur Culture.pptx pptx pptx pttx pttxBahawalpur Culture.pptx pptx pptx pttx pttx
Bahawalpur Culture.pptx pptx pptx pttx pttx
AbdulNasirNichari
 
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
atedyxc
 
TriStar Gold- 05-13-2024 corporate presentation
TriStar Gold- 05-13-2024 corporate presentationTriStar Gold- 05-13-2024 corporate presentation
TriStar Gold- 05-13-2024 corporate presentation
Adnet Communications
 
一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书
一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书
一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书
atedyxc
 
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
atedyxc
 
Prezentacja Q1 2024 EN strona www relacji
Prezentacja Q1 2024  EN strona www relacjiPrezentacja Q1 2024  EN strona www relacji
Prezentacja Q1 2024 EN strona www relacji
klaudiafilka
 
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
atedyxc
 
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
atedyxc
 
State Space Tutorial.pptxjjjjjjjjjjjjjjj
State Space Tutorial.pptxjjjjjjjjjjjjjjjState Space Tutorial.pptxjjjjjjjjjjjjjjj
State Space Tutorial.pptxjjjjjjjjjjjjjjj
joshuaclack73
 

Recently uploaded (20)

Financial Accounting and Analysis balancesheet.pdf
Financial Accounting and Analysis balancesheet.pdfFinancial Accounting and Analysis balancesheet.pdf
Financial Accounting and Analysis balancesheet.pdf
 
NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...
NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...
NO1 Top Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic ...
 
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
一比一原版(Cornell毕业证书)康奈尔大学毕业证成绩单学位证书
 
DSP Gold ETF Fund of Fund PPT - April'2024
DSP Gold ETF Fund of Fund PPT - April'2024DSP Gold ETF Fund of Fund PPT - April'2024
DSP Gold ETF Fund of Fund PPT - April'2024
 
STRATEGIC MANAGEMENT VIETTEL TELECOM GROUP
STRATEGIC MANAGEMENT VIETTEL TELECOM GROUPSTRATEGIC MANAGEMENT VIETTEL TELECOM GROUP
STRATEGIC MANAGEMENT VIETTEL TELECOM GROUP
 
Pitch-deck CopyFinancial and MemberForex.ppsx
Pitch-deck CopyFinancial and MemberForex.ppsxPitch-deck CopyFinancial and MemberForex.ppsx
Pitch-deck CopyFinancial and MemberForex.ppsx
 
Bahawalpur Culture.pptx pptx pptx pttx pttx
Bahawalpur Culture.pptx pptx pptx pttx pttxBahawalpur Culture.pptx pptx pptx pttx pttx
Bahawalpur Culture.pptx pptx pptx pttx pttx
 
How to exchange my pi coins on HTX in 2024
How to exchange my pi coins on HTX in 2024How to exchange my pi coins on HTX in 2024
How to exchange my pi coins on HTX in 2024
 
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
一比一原版(UC Davis毕业证书)加州大学戴维斯分校毕业证成绩单学位证书
 
TriStar Gold- 05-13-2024 corporate presentation
TriStar Gold- 05-13-2024 corporate presentationTriStar Gold- 05-13-2024 corporate presentation
TriStar Gold- 05-13-2024 corporate presentation
 
How do I sell my Pi Network currency in 2024?
How do I sell my Pi Network currency in 2024?How do I sell my Pi Network currency in 2024?
How do I sell my Pi Network currency in 2024?
 
Retail sector trends for 2024 | European Business Review
Retail sector trends for 2024  | European Business ReviewRetail sector trends for 2024  | European Business Review
Retail sector trends for 2024 | European Business Review
 
一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书
一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书
一比一原版(UMich毕业证书)密歇根大学安娜堡分校毕业证成绩单学位证书
 
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
一比一原版(UCSB毕业证书)圣塔芭芭拉社区大学毕业证成绩单学位证书
 
Prezentacja Q1 2024 EN strona www relacji
Prezentacja Q1 2024  EN strona www relacjiPrezentacja Q1 2024  EN strona www relacji
Prezentacja Q1 2024 EN strona www relacji
 
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
一比一原版(Concordia毕业证书)康卡迪亚大学毕业证成绩单学位证书
 
Understanding China(International Trade-Chinese Model of development-Export l...
Understanding China(International Trade-Chinese Model of development-Export l...Understanding China(International Trade-Chinese Model of development-Export l...
Understanding China(International Trade-Chinese Model of development-Export l...
 
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
一比一原版(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单学位证书
 
Tourism attractions in Lesotho katse dam
Tourism attractions in Lesotho katse damTourism attractions in Lesotho katse dam
Tourism attractions in Lesotho katse dam
 
State Space Tutorial.pptxjjjjjjjjjjjjjjj
State Space Tutorial.pptxjjjjjjjjjjjjjjjState Space Tutorial.pptxjjjjjjjjjjjjjjj
State Space Tutorial.pptxjjjjjjjjjjjjjjj
 

Bank Management System