#include <iostream.h>
int num1,num2;
int acc=1000;
char atm;
char keepon='y'||'Y';
;
void main ()
{
while (keepon=='y'||'Y')
{
cout <<"1. Make a deposit (Press D\n"
<<"2. Widthraw money (Press W)\n"
<<"3. See account info (Press A)\n"
<<"4. Exit Program (Press E)"<<endl;
cin >> atm;
switch (atm)
{
case 'D':
cout <<"Enter amount you want to despoit" <<endl;
cin >> num1;
cout <<"You have a total of " <<num1+acc <<" in your account"<<endl;
cout << "To continue enter Y" <<endl;
cin >> keepon;
break;
case 'W':
cout <<"Enter amount you want to widthraw" <<endl;
cin >> num1;
cout <<"You have a total of " <<acc-num1 <<" in your account"<<endl;
cout << "To continue enter Y" <<endl;
cin >> keepon;
break;
case 'A':
cout <<"Your Account info" <<endl;
cout << "To continue enter Y" <<endl;
cin >> keepon;
break;
case 'E':
cout <<"Goodbye. Have a nice day!" <<endl;
break;
default:
cout <<"\nInvalid operation";
break;
}
}
}