|
|
@ -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); |
|
|
|
} |