Browse Source

Implementation of function showAllMenuEntries()

remotes/origin/feature/customer-menu
fdai7057 2 years ago
parent
commit
3e1cc260d4
  1. 31
      src/CustomerMenu.c
  2. 1
      src/CustomerMenu.h

31
src/CustomerMenu.c

@ -20,6 +20,35 @@ void customerChoiceForMenuItem(int numberOfMenuItem)
//call requestLoan(); //call requestLoan();
break; break;
default: default:
printf("No item for number %d.\n",numberOfMenuItem);
printf("Invalid input.\n",numberOfMenuItem);
} }
} }
void showAllMenuEntries()
{
int userDecision = 0;
puts("\n\n\n");
puts("CUSTOMER MENU");
puts("\n");
printf("Select between (1-4):");
puts("\n\n\n");
printf(">->->1. send money<-<-<");
puts("\n\n\n");
printf(">->->2. withdraw money<-<-<");
puts("\n\n\n");
printf(">->->3. deposit money<-<-<");
puts("\n\n\n");
printf(">->->4. request loan<-<-<");
puts("\n\n\n");
puts("Your decision: ");
scanf("%d",&userDecision);
customerChoiceForMenuItem(userDecision);
}

1
src/CustomerMenu.h

@ -1,2 +1,3 @@
#include <stdio.h> #include <stdio.h>
void customerChoiceForMenuItem(int); void customerChoiceForMenuItem(int);
void showAllMenuEntries();
Loading…
Cancel
Save