Bifalgorithm post · Computer science one · Nested Loops
How is the monthly payment formula adapted for a loan amortization schedule?
How is the monthly payment formula adapted for a loan amortization schedule? (Computer science one · Nested Loops) — "Let’s adapt the solution for the loan amo…
Ideas in this flowchart
- Adapt the loan amortization schedule solution
- The solution was previously developed in Section 4.7.3.
- Read the principle, terms, and interest as command-line inputs.
- Adapt the calculation for the monthly payment.
- Calculate the monthly payment as ($monthlyInterestRate * $principle) / (1 - pow((1 + $monthlyInterestRate), -$n)).
- Use the standard math library’s pow() function.