You are on page 1of 16

Acknowledgement

I would like to be thankful and obliged to my


project guide Mr. Prakash sir R.T.C.Inter
College, Buti who gave me valuable
suggestion, precious time to complete this
project.
I am very thankful to my college principal
Mr. Vikash Sir who always encourages and
supports me during the project period.
I am also very thankful to my all the
computer teachers who always support me
completing this project.

NAME – RAHUL MUNDA


EXAM ROLL NO.-
Certificate
This is to certify that the project entitled “BANKING ATM” is
a bonafied work done by “RAHUL MUNDA” board roll
no……….. In practical fulfillment of inter exam 2021 and has
been carried out under my direct supervision and guidance.

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;

Chart name [30],add[70];

Char gen [6];

Void new_acc (void);

Void delete (void);

Void disp_ acc(void);

Void withdraw ();

Void main()[

Clrscr();

Int choice=0;

While (choice <=6)

Cout,,”ATM “ <<endl;

Cout<<”1createan account “<<endl;

Cout<<”2deletean account”<<endl;

Cout<<”3 display information of an account “<<endl;

Cout<<”4 deposite amount in “<<endl;


Cout <<”5withdraw al amount from your account”<<endl;

Cout<<” 6quit”<<endl;

Cout<<”enter your choice”<<endl;

Cin>>choice;

Switch(choice)

Case 1: new _acc ();break;

Case 2:delete ();break;

Case 3:disp –acc ();break;

Case 4: deposit ();break;

Case5 : withdrawl();break

Default:cout<<”wrong choice”;

Void new _ acc()

Ofstream outfile.open(“account_info.dat,ios::out”);

Cout<<”enter your account no.\n”;

Cin>>acc;

Cout<<”enter your name \n”;


If(strcmp(acc,D_acc!=0))

Outfile <<acc <,name<,ag<<gen<<add<<balance;

Infile.close();

Outfile.close();

Remove(“account_ info.dat”);

Rename(“temp.dat”,”account _ info.dat”);

Void disp_ acc ();

Int D _ acc;

Ifstream infile;

Infile. Open (account_ info.dat”’ios::in)

Clrscr();

Cout<,”enter the account no. tobe dismayed”;

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);

cout<<”enter your account noin which amount is to be deposited\n”;

cin>>acc_no.;

cout<<”enter the amount is to be deposited\n”;

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);

Cout<<”enter the account no from which the amount is to be withdraw\n”;

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

3: deposit amount in your account

6: exit

Enter your choice

Enter your account no

565678

Inter your name

Nishi sinha

Enter your age and gender

18

Female

Enter your address

Shanty nagar,delhi

Balance=0

1: create an account

2: delete an account

3: display information of an account

4: deposit amount in your account


5: withdraw amount from your account

6: exit

Enter your choice

Enter your account no. to be displayed

565678

Account no.name age gender address balance

5656789 nishi sinna 18 female shanty nagar, delhi0

ATM

1: create new account

2: delete an account

3: display information of an account

4: deposit amount in your account

5: withdraw amount from your account

6: exit

Enter your choice

Enter the account no in which amount is to be deposit

565678

Enter the amount to be deposit


9000

ATM

1: create new account

2: delete an account

3: display an account

4: deposit amount in your account

5: withdraw amount from your account

6: exit

Enter your choice

Enter your account no. to be displayed

565678

Account no.name age gender address balance

5656789 nishi sinna 28 female shanty nagar, delhi9000

Bibliography
I have taken help from the following books &sites for completing the project

BOOK:
Computer science

Author: Sumita Arora

WEBSITE
www.google.com

www.wikipedia.com

teacher

friends

You might also like