Browse Source

implement initiateMoneyTransfer methode

remotes/origin/feature/send-money
fdai6618 2 years ago
parent
commit
a0989dfed0
  1. BIN
      src/a.exe
  2. 11
      src/sendmoney.c
  3. BIN
      src/sendmoney.exe
  4. 1
      src/sendmoney.h

BIN
src/a.exe

11
src/sendmoney.c

@ -53,7 +53,7 @@ void getReceiverAccountNumber()
else else
{ {
printf("KontoNummer Gueltig");
printf("Kontonummer ist Gueltig");
} }
} }
@ -84,6 +84,8 @@ void SendMoney()
{ {
getReceiverAccountNumber(); getReceiverAccountNumber();
initiateMoneyTransfer(amount);
} }
else else
{ {
@ -105,3 +107,10 @@ void SendMoney()
} }
} }
} }
void initiateMoneyTransfer(float amountToSend)
{
printf("Money transferred \n");
printf("You have succesfully sent %1.f\n ", amountToSend);
}

BIN
src/sendmoney.exe

1
src/sendmoney.h

@ -10,5 +10,6 @@ double getAvailableAccountBalance(double balance);
float getAmount(float amountToSend); float getAmount(float amountToSend);
void getReceiverAccountNumber(); void getReceiverAccountNumber();
void SendMoney(); void SendMoney();
void initiateMoneyTransfer(float amountToSend);
#endif // SENDMONEY_H #endif // SENDMONEY_H
Loading…
Cancel
Save