Sie sind auf Seite 1von 9

~ 1 ~

ACKNOWLEDGEMENT

First and foremost I thank my teacher Ms Kiran has
assigned me this term paper to bring out my creative
capabilities. My heart felt gratitude to my group members
for helping me to complete my work in time.

Contents
Introduction
Header files
Functions
Welcome to Banking system
Activities

Description:
This is Bank management system. There we set options for user
to open account, edit balance, withdraw money and
search.
This program contain function void open() to open account ,
void deposite(int j) to add your money, void withdraw(int k)
to withdraw your money and void search(int m) to search for
your account.

~ 2 ~

This program initially requires or demand basic data from user
to open account. When you have opened your account then
you can edit your balance and withdraw your money or simply
you can visit your account by searching option.

#include<iostream.h>
#include<conio.h>
int ac_no;
float balance;
char name[20];
void open();
void deposite(int);
void withdraw(int);
void search(int);
void main()
{
int x=0,y,z,m;
int a,i;


~ 3 ~


cout<<"\n\t******************************************
*******\n";
cout<<"\n ^^^ :::: WELCOME To BANKING SYSTEM :::: ^^^
";
cout<<"\n\t******************************************
*******"<<endl<<endl;
do
{
cout<<"_____________________________________________
______";
cout<<"\n\n\tPlease choose an option from displayed
below:"<<endl;
cout<<"\n\tPress '1' to open acount:"<<endl;
cout<<"\n\tPress '2' to edit balance:"<<endl;
cout<<"\n\tPress '3' to withdraw money:"<<endl;
cout<<"\n\tPress '4' to search:"<<endl;
cout<<"\n\tPress '5' to exit:"<<endl;
cout<<"_____________________________________________
______";

~ 4 ~


cout<<"\n\n\n\t\t Enter Your option :: ";
cin>>a;
switch(a)
{
case 1:
cout<<"\n\tHow many accounts you want to open:";
cin>>x;
for( i=0; i<x; i++)
open();
break;
case 2:
cout<<"\n\tEnter your account no:";
cin>>y;
for (i=0; i<x; i++)
deposite(y);
break;


~ 5 ~

case 3:
cout<<"\n\tEnter your account no:";
cin>>z;
for(i=0; i<x; i++)
withdraw(z);
break;
case 4:
cout<<"\n\tEnter your account no:";
cin>>m;
for(i=0; i<x; i++)
search(m);
break;
case 5:
break;
default:
cout<<"\n\tYou have enter invalid input please try
again...!!!"<<endl;
break;
}

~ 6 ~

}
while(a!=5);
getch();
}
void open()
{
cout<<"\n\t Enter your name :: ";
cin>>name;
cout<<"\n\t Enter your account no :: ";
cin>>ac_no;
cout<<"\n\t Enter amount of money :: ";
cin>>balance;
}
void deposite(int j)
{
int bnc;
if(ac_no==j)
{

~ 7 ~


cout<<"\n\t Enter the amount of money :: ";
cin>>bnc;
balance+=bnc;
cout<<" \n\tJob has done well...!!!"<<endl;
}
}
void withdraw(int k)
{
int blnc, p;
if(ac_no==k)
{
cout<<"\n\tYour current acccount balance is "<<balance
<<endl;
cout<<"\n\t The amount of money you want to draw is :: ";
cin>>blnc;
p=balance-blnc;
{


~ 8 ~


if(p<0) cout<<"\n\t Sorry there is not enough money in your
account...!!!"<<endl;
else if (p>=0)
{
cout<<"\n\t Your request to withdraw money has done...!!!";
balance=p;
cout<<"\n\t Now you have "<<balance <<" Rupees in your
acount "<<endl;
cout<<"\n\t******************************************
*******\n";
cout<<"\n :::: THANKS :::: ";
cout<<"\n\t******************************************
*******"<<endl<<endl;
}
}
}
}


~ 9 ~


void search(int m)
{
if(ac_no=m)
{
cout<<"account holder's information...!!!"<<endl;
cout<<"name:"<<name<<endl<<"account
no:"<<ac_no<<endl<<"balance:"<<balance<<endl;
}
cout<<"\n\t******************************************
*******\n";
cout<<"\n :::: THANK YOU FOR COMING :::: ";
cout<<"\n\t******************************************
*******"<<endl<<endl;
}

Das könnte Ihnen auch gefallen