Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume you and your employer each contribute HKD 5 0 0 to your Mandatory Provident Fund ( MPF ) at the end of every month

Assume you and your employer each contribute HKD 500 to your Mandatory Provident Fund
(MPF) at the end of every month (HKD 1,000 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
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

Step: 3

blur-text-image

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

Sql++ For Sql Users A Tutorial

Authors: Don Chamberlin

1st Edition

0692184503, 978-0692184509

More Books

Students also viewed these Databases questions

Question

What are some of the possible scenes from our future?

Answered: 1 week ago