Super frustrated. I'm trying to determine how to do this incremental loan calculator.
These are the requirements.
Input should be:
-Loan.
-Amount of years (you want displayed in months).
-InterestRate per month.
Output should be:
-Loan amount (decreasing) per month.
- Monthly Payment.
- Monthly Interest.
This is my progress. I'm running into a compiler error with the pow function on line 32. And when I did get the results before, the output format was wrong. Desperate need of help!
pow takes 2 arguments, and you are missing an operator before it, and missing a parentheses. If your editor doesn't match parentheses automatically and anything thing else that come in pairs, then it's a good idea to type both the opening and closing ones straight away, then go back and fill in what's inside. That way you will never have mismatched pairs.
On line 34, is interestAdd uninitialised? A golden rule is to make sure all variables are initialised.