|
|
@ -1,23 +1,28 @@ |
|
|
|
#include "customerMenu.h" |
|
|
|
#include "sendMoney.h" |
|
|
|
#include "withdrawMoney.h" |
|
|
|
#include "depositMoney.h" |
|
|
|
|
|
|
|
|
|
|
|
int customerChoiceForMenuItem(int numberOfMenuItem, unsigned int *ptr) |
|
|
|
{ |
|
|
|
int returnStatus = 0; |
|
|
|
int ID = *ptr; |
|
|
|
switch(numberOfMenuItem){ |
|
|
|
case 1: |
|
|
|
puts("You have chosen to send money.\n"); |
|
|
|
returnStatus = 1; |
|
|
|
//call sendMoney(); |
|
|
|
sendMoney(ID); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
puts("You have chosen to withdraw money.\n"); |
|
|
|
returnStatus = 2; |
|
|
|
//call withDrawMoney(); |
|
|
|
withdraw(ID); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
puts("You have chosen to deposit money.\n"); |
|
|
|
returnStatus = 3; |
|
|
|
//call depositMoney(); |
|
|
|
depositMoney(ID); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
puts("You have chosen to request a loan.\n"); |
|
|
|