This program was design to simulate an ATM machine and so far it works.
I realize i need other aspects in this program to be more life like
for EX. I need to build an array that when I punch in a pin number the persons name assigned to that pin will pop up with the available balance already stored inside the array and what ever the withdraw amount it will subtract from that balance and what ever deposit amount it will add to that balance.
I've added to the original simplified version of the program but I'm stuck on the Arrays.
Does any body have any clues????
using namespace std;
float Available_Balance ;
string NAME ;
double Balance = 0;
double Withdraw_Amount = 0;
double Deposit_Amount = 0;
int Balance, Withdraw, Deposit;
Balance = 1;
Withdraw = 2;
Deposit = 3;
Cancel = 4;
Option = 1,2,3, 4;
cout<<"Please enter your Pin Number :\n";cin>>DebitCardPin;
cout<<"Please choose an option :\n"<<endl;
cout<<"Enter: (1)-Balance, (2)-Withdraw, (3)-Cancel : \n"; cin>> Option;
if (Option == 1)
cout<<"Your Available Balance Is: \n";
if (Option == 2)
cout<<"Please enter amount:\n"<<endl;
cout<<"please wait while we process you Transaction"<<endl;
if (Option == 3)
cout<<"\nHave a nice day";