@ -1,27 +1,34 @@
# include "customerMenu.h"
# include "customerMenu.h"
void customerChoiceForMenuItem ( int numberOfMenuItem )
int customerChoiceForMenuItem ( int numberOfMenuItem )
{
{
int returnStatus = 0 ;
switch ( numberOfMenuItem ) {
switch ( numberOfMenuItem ) {
case 1 :
case 1 :
puts ( " You have chosen to send money. \n " ) ;
puts ( " You have chosen to send money. \n " ) ;
returnStatus = 1 ;
/ / call sendMoney ( ) ;
/ / call sendMoney ( ) ;
break ;
break ;
case 2 :
case 2 :
puts ( " You have chosen to withdraw money. \n " ) ;
puts ( " You have chosen to withdraw money. \n " ) ;
returnStatus = 2 ;
/ / call withDrawMoney ( ) ;
/ / call withDrawMoney ( ) ;
break ;
break ;
case 3 :
case 3 :
puts ( " You have chosen to deposit money. \n " ) ;
puts ( " You have chosen to deposit money. \n " ) ;
returnStatus = 3 ;
/ / call depositMoney ( ) ;
/ / call depositMoney ( ) ;
break ;
break ;
case 4 :
case 4 :
puts ( " You have chosen to request a loan. \n " ) ;
puts ( " You have chosen to request a loan. \n " ) ;
returnStatus = 4 ;
/ / call requestLoan ( ) ;
/ / call requestLoan ( ) ;
break ;
break ;
default :
default :
puts ( " Invalid input. \n " ) ;
puts ( " Invalid input. " ) ;
returnStatus = - 1 ;
}
}
return returnStatus ;
}
}
void showAllMenuEntries ( )
void showAllMenuEntries ( )