how am i going to print ELIGIBLE or NOT ELIGIBLE(line 3)
loan_calculate(); //how to call function?
printf("Monthly payment <RM>:%f", monthly); //i cant print the value
printf("Status: ", status); //how am i going to print ELIGIBLE or NOT ELIGIBLE
printf("Status: ");
return 0;
}
void loan_calculate (float L, float DP, int Y, float S, float *monthlyPtr, char *statusPtr, float I){
*monthlyPtr = ((L - DP)+((L-DP)*(I/100)*Y))/(12*Y);
if (*monthlyPtr <= ((25/100)*(*monthlyPtr)))
*statusPtr = 'E';
else
*statusPtr = 'N';
return;
}
Edited by Jordan, 03 September 2009 - 07:01 AM.


Sign In
Create Account


Back to top









