system("cls");
cout<<"Welcome to Metrobank:"<<endl;
cout<<"Please choose if you want to use your ATM card"<<endl;
cout<<"or just your USERNAME and PASSWORD\n";
cout<<"1. ATM card"<<endl;
cout<<"2. USERNAME"<<endl;
cout<<"any key: CREDITS"<<endl;
cout<<"Select Choice: ";
cin>>c;
switch (c){
case '1':
system ("cls");
int pin;
float account,amount,yes,no;
char ans,opt;
cout<<"Welcome to Metrobank:"<<endl;
cout<<"Please insert your card:"<<endl;
cout<<"Enter pin:\t";
cin>>pin;cout<<endl;
if(pin!=930110){
cout<<"You have reach the maximum attempt."<<endl;
cout<<"Sorry. You are not allowed to proceed another transaction."<<endl;
cout<<"Please come again after two days."<<endl;
cout<<"Please, get your card."<<endl;
}
}else{
case'B':
case'b':
system ("cls");
cout<<"Do you want to withdraw?:\t"<<endl;
cin>>yes or no;
cout<<"Enter amount if you want to withdraw:\t"<<endl;
cin>>amount;
cout<<"Please wait your transaction is being process:\t"<<endl;
cout<<"Please get your card,money,receipt:\t"<<endl;
break;
}
cout<<"Another Transaction?:[]";
cin>>ans;
system("cls");
}while(ans=='y'||ans=='Y');
break;
case'B':
case'b':
system ("cls");
cout<<"Do you want to withdraw?:\t"<<endl;
cin>>amount;
cout<<"Enter amount if you want to withdraw:\t"<<endl;
cin>>amount;
cout<<"Please wait your transaction is being process:\t"<<endl;
cout<<"Please get your card,money,receipt:\t"<<endl;
cout<<"Enter amount if you want to withdraw:\t"<<endl;
cin>>amount;
cout<<"Please wait your transaction is being process:\t"<<endl;
cout<<"Please get your card,money,receipt:\t"<<endl;
cout<<"You deposited $"<<deposit<<endl;
cout<<"Your new balance is $"<<balance2<<endl;
system("pause");
return main();
case 4:
system("cls");
cout<<"\n***[[[EXIT MODE]]]***\n";
system("pause");
break;
default:
cout<<"\n That is an invalid option \n";
system("pause");
return main();
break;
}
}
}
cout<<"Created by: Group 1 BSIT-2 D2"<<endl;
cout<<" the Group Members are:"<<endl;
cout<<"\t - RONEL ANTATAP"<<endl;
cout<<"\t - MARK JAMES SORIANO"<<endl;
cout<<"\t - CHESKA TERADO"<<endl<<endl;
cout <<"thank you:\n\n"<<endl;
cout<<"GOD BLESS:"<<endl;