Since we will be working with months, we must convert our yearly figures to monthly.
Then to compute M the monthly payment
The equation is:
Write an IPO that will read in the three required values, P,I, and L
and compute and print out M the monthly payment.
Example:
Payment Calculator How much are you borrowing ? : 2000 What is the annual interest rate? example for 13 1/2% enter 13.5 Rate : 12 How many years for this loan? example for 42 months enter 3.5 Years : 2 The Payment is : 94.147