|
@ -1,27 +1,24 @@ |
|
|
#include "requestLoan.h" |
|
|
#include "requestLoan.h" |
|
|
int allow() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int allow() //int allow() is helpful for indirectly testing void requestLoan() |
|
|
{ |
|
|
{ |
|
|
if (a == 1) |
|
|
if (a == 1) |
|
|
{ |
|
|
{ |
|
|
return 1; |
|
|
return 1; |
|
|
} |
|
|
} |
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void requestLoan() |
|
|
void requestLoan() |
|
|
{ |
|
|
{ |
|
|
if (allow() == 1) |
|
|
|
|
|
|
|
|
if (allow() == 1) //only if int allow() returns 1, void requestLoan() will display the desired output |
|
|
{ |
|
|
{ |
|
|
printf(" Please select a loan Package: \n"); |
|
|
|
|
|
printf(" \n"); |
|
|
|
|
|
printf(" \n"); |
|
|
|
|
|
printf(" 1000 Euro\n"); |
|
|
|
|
|
printf(" 2500 Euro\n"); |
|
|
|
|
|
printf(" 5000 Euro\n"); |
|
|
|
|
|
|
|
|
printf(" Please select a loan Package: \n"); |
|
|
|
|
|
printf(" \n"); |
|
|
|
|
|
printf(" \n"); |
|
|
|
|
|
printf(" %d %s\n", option1, currency); |
|
|
|
|
|
printf(" %d %s\n", option2, currency); |
|
|
|
|
|
printf(" %d %s\n", option3, currency); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|