Hey all I'm having trouble with for loops. I need to calculate monthly balance and interest paid on a balloon mortgage and am having trouble with the calculations. An example of what the program should look like:
Enter Mortgage: 100000
Enter Interest Rate: 5
Enter Payment Amount: 1000
Enter Number of Years for Loan: 5
Well are you sure you're equations are right, Because the only thing that's ever going to change is the variable counter (or NumPayments) but nowhere in your other variables does the value of the counter affect them.
I was told by an assistant professor that my calculations seemed correct but now I may be starting to second guess that which is why I came here lol. The more I try to change things around the more I get confused.
Just looking at your logic (so don't worry about programming for a second), does what your asking even make much sense?
"Please enter a mortgage amount: " <--
"Please enter an annual interest rate: "
"Please enter a payment amount: " <--
Is this how much the person will pay each year?
"Please enter number of years for the loan: " <--
Should at least one of the three things I marked not be calculated by the program? If I say I want a mortgage of $500000 and want a payment amount of $100 for 3 years, is that not just daft?
Either the number of years, or the the payment amount should be calculated by your software.