You need the interest variable within the While loop in order to prevent the loop from looping infinitely. Your monthlyPay equation is not correct if it's not producing the correct Monthly Pay value...
Type: Posts; User: Staticity
You need the interest variable within the While loop in order to prevent the loop from looping infinitely. Your monthlyPay equation is not correct if it's not producing the correct Monthly Pay value...
Your monthlyPay equation returns "interest*10000". Follow the equation in your book, I am sure you had some sort of Syntax Error involved with your first equation. This second equation is very hard...
Let's start by comparing your output values to the actual answer. So input the same numbers as the example into your equation, and list the values.
So reply like this:
Correct Output:
1
2
3...
Your error is arising with your "monthlyPay" equation. What is the given formula for Monthly Pay? Make sure it matches with what you wrote.