Question: Your assignment is to write a function, extraPayments, that computes total number of monthly payments required to pay off the loan given the barrower makes

Your assignment is to write a function, extraPayments, that computes total number of monthly payments required to pay off the loan given the barrower makes one extra
payment per year (i.e. once every 12 months).
The function accepts the following four scalar inputs (in order):
The loan principal, amount of money barrowed (P)
The annual interest rate (r)
The loan term in years, number of years to payback the loan (N)
The extra annual payment amount (E)
Your function should output the following two scalar values (in order):
The total interest paid over the duration of the loan (T).
The number of months saved from the original term due to the extra annual payment (S).
Your assignment is to write a function,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!