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.
Feed/

How is the monthly payment formula adapted for a loan amortization schedule?

No cover

Channel

Computer science one

1 page

"Let’s adapt the solution for the loan amortization schedule we developed in Section 4.7.3. First, we’ll read the principle, terms, and interest as command line inputs. Adapting the formula for the monthly payment and using the standard math library’s pow() function, we get\n\n$monthlyPayment = ($monthlyInterestRate * $principle) / (1 - pow((1 + $monthlyInterestRate), -$n));"

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.