Re: Figuring out interest
Quote:
Originally Posted by
JerBear24
I still need to figure out how to calculate and display the monthlyPayments which are 332.14, the amountPaidBack which will total to $11,957.15, and the interestPaid which will obviously be $1,957.15. Any help as to how I can add them into the program? Thanks in advance.
How did you derive those figures? You must have applied some formula, so all you have to do is write the same formula in your program.
Re: Figuring out interest
for display you can use
eg;
Code:
cout << "The monthly payments is " << monthlyPayments ;
Re: Figuring out interest
yeah I was giving these numbers, I was so confused because I kept doing the math and the numbers never added up. I guess I just display them and there is no math.
Re: Figuring out interest
You may want to look up how interest is calculated. It isn't that simple. try a search for "amortization formula".
Re: Figuring out interest
There's still something missing from your question. Simple loan amortization is relatively easy to calculate (for example, see http://www.hughchou.org/calc/formula.html). But using the standard formula results in a monthly payment of 282.08 rather than 332.14 which can be verified by any online mortgage calculator.
Obviously, in a real mortgage there are other factors that will modify the monthly payment amount but you haven't said anything about those factors so we must assume the standard calculation.
You need to provide more information about where the figures you were given came from - a web site? a book? homework?.