where noMonths is = 12, 24, 36, 48, and 60. noMonths is also an exponent and that is what's throwing me off.
and how do I properly assign the months 12, 24, 36, 48, and 60 to noMonths?
Any help is appreciated, thank you very much :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
monIntRate = annualIntRate / 12.0;
annualIntPercent = annualIntRate * 100.0;
loanAmt = price - downPayment - tradeIn;
noMonths = 12 && 24 && 36 && 48 && 60; (I know this is wrong, but to show what I need it to do I've written it like this)
monPayment = (loanAmt * monIntRate) / (1.0 - (1 + monIntRate)(pow -noMonths));
cin.get();
return 0;
}
It's a homework assignment , he specified all of my other variables but not noMonths, guess that I'll have to make it happen, thanks for the help guys.
And yes I cut out the majority of the code leading up to this because it works great and is irrelevant to the equation set up. Really big pain in the butt ;)