This project has been made by an individual along with the C++ coding and output and has not been copied in any form. Hope it will help you. This is a simple school project belongs to KV No. 1 Harni Road Vadodara. Certficate is also Provided.
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
Bank Management System
1.
2. Content To Preview
1. Certificate
2. Acknowledgement
3. Header Files
4. Coding
5. Outputs
6. End page
3. 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
7. 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..";
}
8. 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;
}
11. 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();
12. 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)
13. {
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();
}
14. 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));
16. 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();
17. 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);
18. {
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;
}
}