Professional Documents
Culture Documents
Signature of guide
(Mr.Prakash ) External
Computer science
Index
1. certificate
2. Acknowledgement
3. Hardware & software requirement
4. Objective of program
5. Source coding
6. Output
7. Bibliography
Hardware requirement
*Pc with latest technology
Software requirement
1. Turbo c++
2. Ms-word
3. Operating system
OBJECTIVEN OF PROGRAM
The project entitle BANKING is development using C++ language for the
purpose of providing any one who has the knowledge of programming or not but
can organize the accounting activities in a systematic ways . He/she can store
account related information in a data file. Accounts can be opened and closed and
also account information would be displayed and amount deposits, withdrawal
and function is available too.
SOURCE
CODE
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
Int acc,ag,blance;
Int balance=0;
Void main()[
Clrscr();
Int choice=0;
Cout,,”ATM “ <<endl;
Cout<<”2deletean account”<<endl;
Cout<<” 6quit”<<endl;
Cin>>choice;
Switch(choice)
Case5 : withdrawl();break
Default:cout<<”wrong choice”;
Ofstream outfile.open(“account_info.dat,ios::out”);
Cin>>acc;
Infile.close();
Outfile.close();
Remove(“account_ info.dat”);
Rename(“temp.dat”,”account _ info.dat”);
Int D _ acc;
Ifstream infile;
Clrscr();
Cin>>D_acc;
Cout<<”account no\t”<<”name\t”<<”age\t”<<”gender\t”<<”address\t”<<
“balance\n”;
While(infile)
Infile>>acc>>name>>ag>>gen>>add>>balance>>endl;
If(strcmp(acc,D_ acc==0))
Cout<<acc<<name<<ag<<gen<<add<<balance<<endl;
Infile.close();
Void deposit()
inntD_amt’acc_no;
ifstream infile;
infile.open(“account_info.dat”,ios::in);
ofstream.outfile;
outfile.open(“account_info.dat”,ios::out);
cin>>acc_no.;
cin>>D_amt;
while(infile)
Infile>>acc>.name>>ag>.gen..add>>balance>>endl;
If(strcmp(acc,acc_no==0)
Balance=balance+D_amt;
}
Outfile<<acc<<name<<age<<gen<<add<<balance<<endl;
Outfile.close();
Infile.close();
Void withdrawl()
Intw_amt,acc_no;
Ifstream infile;
Infile.open(“account_info.dat”,ios::in);
Ofsteam outfile;
Outfile.open(“account_info.dat,ios::out);
Cin>>w_amt;
While(infile)
Infile>>acc>>name>>ag>>gen>>add>>balance>>endl;
If(strcmp(acc,acc_no)
If(balance>=1000)
Balance=balance-w_amt;
}
Else
Cout<<”insufficient amount”;
Outfile<<acc<<name<<ag<<gen<<add<<balance<<endl;
Outfile.close();
Infile.close();
Output
ATM
1: create new account
2: delete an account
6: exit
565678
Nishi sinha
18
Female
Shanty nagar,delhi
Balance=0
1: create an account
2: delete an account
6: exit
565678
ATM
2: delete an account
6: exit
565678
ATM
2: delete an account
3: display an account
6: exit
565678
Bibliography
I have taken help from the following books &sites for completing the project
BOOK:
Computer science
WEBSITE
www.google.com
www.wikipedia.com
teacher
friends