#include<iostream>
using namespace std;
void top()
{
cout<<"\t\t============================================="<<endl;
cout<<"\t\t\t\twelcome to my project"<<endl;
cout<<"\t\t============================================="<<endl;
cout<<"\t\t============================================="<<endl;
}
int main()
{
int amount=10000;
int choice;
string name,pin,password,account;
top();
start:
cout<<"dear enter your name:";
cin>>name;
cout<<"please enter pin code:";
cin>>pin;
cout<<"please enter password:";
cin>>password;
cout<<"please enter account:";
cin>>account;
if(name="Ali" && account=0000 && pin=1111 && password=5555 || name="Asher" && account=1111 && pin=2222 && password=6666 || name="Ahmad" && account=2222 && pin=3333 && password=7777 || name="TOUSEEF" && account=3333 && pin=4444 && password=8888 )
{
system("cls");
top();
cout<<"1.Balance Inquir"<<endl;
cout<<"2.Deposite amount"<<endl;
cout<<"3.Transfer Amount"<<endl;
cout<<"4.Withdraw Money"<<endl;
cout<<"\tplease enter your choice"<<endl;
if(choice=1)
{
string acc;
cout<<"please enter your account number";
cin>>acc;
if(acc=account)
{
cout<<"amount in your account is:"<<amount<<endl;
}
else
{
cout<<"enter correct account number:";
}
}
if(choice=2)
{
string am;
cout<<"please enter amount you want to deposite";
cin>>am;
amount=amount+am;
cout<<"successfully deposite current amount"<<amount<<endl;
}
if(choice=3)
{
string tr;
cout<<"please enter amount you want to transfer";
cin>>tr;
amount=amount-tr;
cout<<"successfully transfer current amount"<<amount<<endl;
}
if(choice=4)
{
string wi;
cout<<"please enter amount you want to withdraw";
cin>>wi;
amount=amount-wi;
cout<<"successfully withdraw current amount"<<amount<<endl;
}
}
else
{
cout<<"wrong input please try again"<<endl;
goto start;
}
}
No comments:
Post a Comment