Professional Documents
Culture Documents
In this term paper I have developed a source code that deals with
day to day customers interaction in the bank for deposit and
withdrawal of cash. In my program there will be information about
all the account holders like name, account number, total balance,
deposit balance, withdrawal balance and the residual balance.
Input_data
Display_data
Number of accounts
account number
name of depositer
deposit cash
balance
withdraw cash
new balance
minimum account balance=rs 500
accountno
name
deposit
balance
newbal
withdraw
Source code: -
#include<iostream.h>
#include<conio.h>
class account
private:
int accountno,newbal,deposit,withdraw;
char name[15];
double balance;
public:
void input_data()
cin>>accountno;
cout<<"name="<<"\n";
cin>>name;
cout<<"deposit="<<"\n";
cin>>deposit;
cout<<"withdraw=";
cin>>withdraw;
balance=deposit;
newbal=balance-withdraw;
void display_data()
cout<<"\nAccount number=\t"<<accountno;
cout<<"\nAccount balance=\t"<<balance;
cout<<"\nWithdrawn=\t"<<withdraw;
if(newbal>500)
cout<<"\nNew balance=\t"<<newbal;
else
};
int main()
clrscr();
account acc[10];
int n;
cin>>n;
for(int i=0;i<n;i++)
{
acc[i].input_data();
for(i=0;i<n;i++)
cout<<"\nInformation of account="<<i+1;
acc[i].display_data();
getch();
return 0;