Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework 2 . Present Value of Ordinary Annuity Assume you and your employer each contribute HKD 5 0 0 to your Mandatory Provident Fund (

Homework 2. Present Value of Ordinary Annuity
Assume you and your employer each contribute HKD 500 to your Mandatory Provident Fund
(MPF) at the end of every month (HKD 1,ooo in total). Suppose the beginning account balance
is zero, and the return is compounded monthly. Write a Python program to calculate the
present value of the MPF.
Let the user set a target monthly rate of return and the number of months.
Round the answer to the nearest dollar.
The output should resemble the following.
Enter a target MONTHLY rate of return (without the % sign): 0.05
Enter the number of months: 5
The total MPF of $5000 in 5 months is worth $4329 today.
Follow the same submission requirement (.py file and screenshot) as before.
Hint: You may apply the formula below or use loops.
An ordinary annuity is a series of future cash flows paid out evenly at the end of every period
(e.g., monthly, annually). Let the month-end contribution amount be c, the monthly rate be r.
Assume the return is compounded monthly. Using the summation of geometric progressions ?1,
the total value in n months is
PV=c(1+r)+c(1+r)2+cdots+c(1+r)n=c*(1+r)-1-(1+r)-n-11-(1+r)-1=c*1-(1+r)-nr
Illustration: Present value of an ordinary annuity^2
?1 Recall that q+q2+cdots+qn=q-qn+11-q. Then let q=(1+r)-1.
?2https:??www
investopedia.com/retirement/calculating-present-and-future-value-of-annuities/
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions