@ -1,26 +1,26 @@
# include "C ustomerMenu.h"
# include "c ustomerMenu.h"
void customerChoiceForMenuItem ( int numberOfMenuItem )
void customerChoiceForMenuItem ( int numberOfMenuItem )
{
{
switch ( numberOfMenuItem ) {
switch ( numberOfMenuItem ) {
case 1 :
case 1 :
printf ( " You have chosen to send money. \n " ) ;
puts ( " You have chosen to send money. \n " ) ;
/ / call sendMoney ( ) ;
/ / call sendMoney ( ) ;
break ;
break ;
case 2 :
case 2 :
printf ( " You have chosen to withdraw money. \n " ) ;
puts ( " You have chosen to withdraw money. \n " ) ;
/ / call withDrawMoney ( ) ;
/ / call withDrawMoney ( ) ;
break ;
break ;
case 3 :
case 3 :
printf ( " You have chosen to deposit money. \n " ) ;
puts ( " You have chosen to deposit money. \n " ) ;
/ / call depositMoney ( ) ;
/ / call depositMoney ( ) ;
break ;
break ;
case 4 :
case 4 :
printf ( " You have chosen to request a loan. \n " ) ;
puts ( " You have chosen to request a loan. \n " ) ;
/ / call requestLoan ( ) ;
/ / call requestLoan ( ) ;
break ;
break ;
default :
default :
printf ( " Invalid input. \n " , numberOfMenuItem ) ;
puts ( " Invalid input. \n " ) ;
}
}
}
}
@ -33,19 +33,19 @@ void showAllMenuEntries()
puts ( " CUSTOMER MENU " ) ;
puts ( " CUSTOMER MENU " ) ;
puts ( " \n " ) ;
puts ( " \n " ) ;
printf ( " Select between (1-4): " ) ;
puts ( " Select between (1-4): " ) ;
puts ( " \n \n \n " ) ;
puts ( " \n \n \n " ) ;
printf ( " ->->->1. send money<-<-<- " ) ;
puts ( " ->->->1. send money<-<-<- " ) ;
puts ( " \n \n \n " ) ;
puts ( " \n \n \n " ) ;
printf ( " ->->->2. withdraw money<-<-<- " ) ;
puts ( " ->->->2. withdraw money<-<-<- " ) ;
puts ( " \n \n \n " ) ;
puts ( " \n \n \n " ) ;
printf ( " ->->->3. deposit money<-<-<- " ) ;
puts ( " ->->->3. deposit money<-<-<- " ) ;
puts ( " \n \n \n " ) ;
puts ( " \n \n \n " ) ;
printf ( " ->->->4. request loan<-<-<- " ) ;
puts ( " ->->->4. request loan<-<-<- " ) ;
puts ( " \n \n \n " ) ;
puts ( " \n \n \n " ) ;
puts ( " Your decision: " ) ;
puts ( " Your decision: " ) ;