PROBLEM III Consider an annuity that pays a fixed amount of C every time period...

50.1K

Verified Solution

Question

Finance

image

PROBLEM III Consider an annuity that pays a fixed amount of C every time period for n periods. If the discount rate is r, the PV of this annuity is: PV = C/(1 + r) + C/(1 + r)? + C/(1 + r)3 + ... C/(1 + r)" (a) Write a function to compute the PV of an annuity. You must use recursion in this function. Name the function AnnuityPV and use it to compute the PV of an annuity that pays $1,000 at the end of each year for the next 7 years. The discount rate is 8% per year. (b) Now rewrite the function but you must use Do While in the function. Name this function AnnuityPV2 and use it to compute the PV of an annuity that pays $1,000 at the end of each year for the next 7 years. The discount rate is 8% per year. PROBLEM III Consider an annuity that pays a fixed amount of C every time period for n periods. If the discount rate is r, the PV of this annuity is: PV = C/(1 + r) + C/(1 + r)? + C/(1 + r)3 + ... C/(1 + r)" (a) Write a function to compute the PV of an annuity. You must use recursion in this function. Name the function AnnuityPV and use it to compute the PV of an annuity that pays $1,000 at the end of each year for the next 7 years. The discount rate is 8% per year. (b) Now rewrite the function but you must use Do While in the function. Name this function AnnuityPV2 and use it to compute the PV of an annuity that pays $1,000 at the end of each year for the next 7 years. The discount rate is 8% per year

Answer & Explanation Solved by verified expert
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students