SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
dipikadinghjn ( Why You Choose Us? ) Escorts
 

Kürzlich hochgeladen (20)

(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANIKA) Budhwar Peth Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
 
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
 
Log your LOA pain with Pension Lab's brilliant campaign
Log your LOA pain with Pension Lab's brilliant campaignLog your LOA pain with Pension Lab's brilliant campaign
Log your LOA pain with Pension Lab's brilliant campaign
 
Indore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdfIndore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdf
 
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
 
Pooja 9892124323 : Call Girl in Juhu Escorts Service Free Home Delivery
Pooja 9892124323 : Call Girl in Juhu Escorts Service Free Home DeliveryPooja 9892124323 : Call Girl in Juhu Escorts Service Free Home Delivery
Pooja 9892124323 : Call Girl in Juhu Escorts Service Free Home Delivery
 
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
 
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure serviceCall US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
 
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
 
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
Dharavi Russian callg Girls, { 09892124323 } || Call Girl In Mumbai ...
 
The Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfThe Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdf
 
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
 
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
 
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
 
Veritas Interim Report 1 January–31 March 2024
Veritas Interim Report 1 January–31 March 2024Veritas Interim Report 1 January–31 March 2024
Veritas Interim Report 1 January–31 March 2024
 
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
 
03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx
 
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsHigh Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
High Class Call Girls Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
 

Bank Management System