Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is the formula for the present value of an annuity. We can find R , given P , n and i as R =
This is the formula for the present value of an annuity. We can find R given P n and i
as
RPiin
In R we define variables as follows: principal to hold the value of P and intRate to hold the interest rate, and n to hold the number of payments. We will assign the resulting payment value to an object called payment.
Of course, we need some numerical values to work with, so we will suppose that the loan amount is $ the interest rate is and the number of payments is The required code is thenintRate
n
principal
payment principal intRate intRaten
payment
##
For this particular loan, the monthly payments are $
In each question below, write out or type the required lines of R code, together with the answer to the question.
Calculate the monthly payment required for a loan of $ at a monthly interest rate of based on monthly payments, starting in one months time.
Calculate the sum Pnj j and compare with nn for n
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started