Oct-16-2018, 12:12 AM
All right, break the problem down into smaller parts. You'll need to:
1. Write a function (or just a line of code) that will calculate the interest.
2. Loop over that function to perform the calculation with each interest rate.
3. Provide an output for the value of the interest rate, monthly payment, and total payment.
You mentioned that you're stuck on #2. Is there anything in particular about for loops that is... throwing you for a loop? ...it had to be done.
What have you learned about for loops or loops in general?
1. Write a function (or just a line of code) that will calculate the interest.
2. Loop over that function to perform the calculation with each interest rate.
3. Provide an output for the value of the interest rate, monthly payment, and total payment.
You mentioned that you're stuck on #2. Is there anything in particular about for loops that is... throwing you for a loop? ...it had to be done.
What have you learned about for loops or loops in general?