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