hey people i need help in this programming thanks for the help in advance....here is wad i have so far i got no idea whats wrong with my program i have 6 errors at the moment...before tat i was able to run the program but now i cant seem to run the program after my third printf.....please i need help fast thank you
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main(void)
{
float monthlyPayment;
float balance;
float interestRate;
float month;
float cout;
printf("Enter the current balance of your loan: ");
scanf("%f", &balance);
printf("Enter the interest rate (compounded monthly) : ");
scanf("%f",&interestRate);
printf("Enter the desired monthly payment : ");
scanf("%f", &monthlyPayment);
if (interestRate >= 1)
{
interestRate = interestRate / 100;
Here, now it will compile. all I did was put in a few cout statements to see where it was not working.
Your biggest problem was float cout;
and scanf("After month 1 your balance is $%f", &balance);
and a } before getch.
still a lot of work to do. your main problem is trying to do to much too fast.
Do one thing, test it, make sure it works, make sure you understand it, then add one more little thing. I recommend getting your logic down, do the math, then add the rest.
Your logic sux
1 2 3 4
if (interestRate > 1)
else (balance > 0);
if(balance<monthlyPayment)
else
Do it on paper first, if you can do it on paper, you can write the logic.
i really appreciate the help thank you people....with the help i was able to understand and write the program with more logic once again thanks for the help :-)