From ae540953ba8c8ec1d187b0e23a582e85c0f8742f Mon Sep 17 00:00:00 2001 From: fdai7057 Date: Sat, 21 Jan 2023 19:48:43 +0100 Subject: [PATCH] Implementation of function customerChoiceForMenuItem(). --- src/CustomerMenu.c | 25 +++++++++++++++++++++++++ src/CustomerMenu.h | 2 ++ src/main.c | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/CustomerMenu.c create mode 100644 src/CustomerMenu.h diff --git a/src/CustomerMenu.c b/src/CustomerMenu.c new file mode 100644 index 0000000..423bec6 --- /dev/null +++ b/src/CustomerMenu.c @@ -0,0 +1,25 @@ +#include "CustomerMenu.h" + +void customerChoiceForMenuItem(int numberOfMenuItem) +{ + switch(numberOfMenuItem){ + case 1: + printf("You have choosen to send money.\n"); + //call sendMoney(); + break; + case 2: + printf("You have choosen to withdraw money.\n"); + //call withDrawMoney(); + break; + case 3: + printf("You have choosen to deposit money.\n"); + //call depositMoney(); + break; + case 4: + printf("You have choosen to request a loan.\n"); + //call requestLoan(); + break; + default: + printf("No item for number %d.\n",numberOfMenuItem); + } +} diff --git a/src/CustomerMenu.h b/src/CustomerMenu.h new file mode 100644 index 0000000..fd3110b --- /dev/null +++ b/src/CustomerMenu.h @@ -0,0 +1,2 @@ +#include +void customerChoiceForMenuItem(int); diff --git a/src/main.c b/src/main.c index 9d3ac30..2e0147f 100644 --- a/src/main.c +++ b/src/main.c @@ -4,4 +4,4 @@ int main() { return 0; -} \ No newline at end of file +}