Browse Source

Implementation of function showAllMenuEntries()

remotes/origin/beta
fdai7057 2 years ago
committed by fdai7207
parent
commit
dd1d923a68
  1. 31
      src/CustomerMenu.c
  2. 1
      src/CustomerMenu.h

31
src/CustomerMenu.c

@ -20,6 +20,35 @@ void customerChoiceForMenuItem(int numberOfMenuItem)
//call requestLoan();
break;
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>
void customerChoiceForMenuItem(int);
void showAllMenuEntries();
Loading…
Cancel
Save