diff --git a/src/withdrawMoney.c b/src/withdrawMoney.c index dc3a2e9..4a2f1f5 100644 --- a/src/withdrawMoney.c +++ b/src/withdrawMoney.c @@ -1,4 +1,14 @@ -#include +#include "withdrawMoney.h" + +void initiateWithdraw(float amountToWithdraw, float availableAccountBalance) { + float remainingAccountBalance = (availableAccountBalance - amountToWithdraw); + + updateAccountBalance(remainingAccountBalance); + printf("You have successfully withdrawn %f €.\n", amountToWithdraw); + printf("Remaining account balance: %f €\n\n", remainingAccountBalance); + printf("Press any key to return to home page: "); + // go to home page +} void withdraw() { float amountToWithdraw;