|
|
@ -1,7 +1,9 @@ |
|
|
|
#include "withdrawMoney.h" |
|
|
|
#include "currentCustomerAccountBalance.c" |
|
|
|
#include "updateCustomerAccountBalance.c" |
|
|
|
|
|
|
|
void notifyCustomer(amountToWithdraw, remainingAccountBalance) { |
|
|
|
char returnToHomeInput = NULL; |
|
|
|
char returnToHomeInput; |
|
|
|
|
|
|
|
printf("You have successfully withdrawn %f €.\n", amountToWithdraw); |
|
|
|
printf("Remaining account balance: %f €\n\n", remainingAccountBalance); |
|
|
@ -9,7 +11,7 @@ void notifyCustomer(amountToWithdraw, remainingAccountBalance) { |
|
|
|
scanf("%c", &returnToHomeInput); |
|
|
|
|
|
|
|
if (returnToHomeInput) { |
|
|
|
showAllMenuEntries(); |
|
|
|
//showAllMenuEntries(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -48,7 +50,7 @@ void withdraw(int user_id) { |
|
|
|
withdraw(user_id); |
|
|
|
} |
|
|
|
else { |
|
|
|
showAllMenuEntries(); |
|
|
|
//showAllMenuEntries(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|