Bank Management System in C++ - Mini Project  

At the end you can download cpp file of this project.

Code in C++ :

#include<iostream>
#include<conio.h>
using namespace std;
void key ();
int main ()
{
system("cls");
cout<<"\n\n\n\t\t\t---------------";
cout<<"\n\t\t\tWelcome to Bank"<<endl;
cout<<"\t\t\t---------------";
char name[20],city[10];
int  account_no1,account_no,dep,wid,choice,total=0;
do
{
cout<<"\n\n1) Creat Account\t\t2) Deposit\t\t\t3) Withdraw"<<endl;
cout<<"4) Total Balance\t\t5) View Detail of Account\t6) EXIT\n" <<endl;
cout<<"Enter Youe Choice: ";
cin>>choice;
switch(choice)
{
case 1:
cout<<"\t\t\tEnter Coustomer Name: ";
cin>>name;
cout<<"\t\t\tEnte Account Number: ";
cin>>account_no;
cout<<"\t\t\tEnter Your Address: ";
cin>>city;
break;
case 2:
cout<<"\t\t\tEnter Account NO: ";
cin>>account_no1;
if(account_no1==account_no)
{
cout<<"\t\t\tEnter Ammount to Deposit: ";
cin>>dep;
total=total+dep;
cout<<"\t\tYour Name: "<<name<<"\t\tAccount NO: "<<account_no<<endl;
cout<<"\t\tAddress: "<<city<<"\t\tTotal Balance: "<<total<<endl;
}
else
cout<<"\t\t\tAccount NO is INVALID...."<<endl;
break;
case 3:
cout<<"\t\t\tEnter Account NO: ";
cin>>account_no1;
if(account_no1==account_no)
{
cout<<"\t\t\tEnter Ammount to Withdraw: ";
cin>>wid;
total=total-wid;
cout<<"\t\tYour Name: "<<name<<"\t\tAccount NO: "<<account_no<<endl;
cout<<"\t\tAddress: "<<city<<"\t\tTotal Balance: "<<total<<endl;
}
else
cout<<"\t\t\tAccount NO is INVALID...."<<endl;
break;
case 4:
cout<<"\t\t\tEnter Account NO: ";
cin>>account_no1;
if(account_no1==account_no)
cout<<"\t\t\tTotal Balance: "<<total<<endl;
else
cout<<"\t\t\tAccount NO is INVALID...."<<endl;
break;
case 5:
cout<<"\t\t\tEnter Account NO: ";
cin>>account_no1;
if(account_no1==account_no)
{
cout<<"\t\tYour Name: "<<name<<"\t\tAccount NO: "<<account_no<<endl;
cout<<"\t\tAddress: "<<city<<"\t\tTotal Balance: "<<total<<endl;
}
else
cout<<"\t\t\tAccount NO is INVALID...."<<endl;
break;
case 6:
cout<<"\t\t\tThank YOu For Watching My Program:"<<endl;
cout<<"\t\t\tDesigned By: Talha'S Group........"<<endl;
break;
default:
cout<<"\t\t\t\t\tInvalid Choice....";
}
key ();
getch();
system("cls");
cout<<"\t\t\\tPress Any Key to Continue......";
getch();
}
while(choice!=6);
getch();
}
void key (void)
{
cout<<" \t\t\t\tpress anykey to continue"<<endl;
}

------------------------------------------------------------------------------------------------------
Download CPP File:


Share To:

Adeel Rasheed

Full Stack Website Developer

Post A Comment:

0 comments so far,add yours