Iam trying to calculate a mortage for a class project, and I cant get the formula to calculate it right.
I have this so far
//calculate input items:
//Calculate present value (principal)
principal= payment * (interestRate / (1-pow(interestRate + 1,-term)));
//display output items
cout <<...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.