Question: Thanks for your help. I would like to know the Python program or the mathematical equation to calculate the present value of total bonus for
Thanks for your help. I would like to know the Python program or the mathematical equation to calculate the present value of total bonus for this question.

Homework 2. Present Value of Annuity Your employer gives you a loyalty bonus of $100,000 at the end of every five years. Suppose this is the beginning of your first year at the company and you plan to retire at the company in 38 years. At the end of year 38, although there is no regular loyalty bonus, you will receive a one-time payment of 1 million. Assume the return is compounded annually and there is no income tax. Write a Python program to calculate the present value of the total bonus. 1) Let the user enter the discount rate. 2) Round the answer to two decimal places. The output should resemble the following. LA Upload both the . py file and code output screenshot (.jpg/.png) to Canvas. Enter the discount rate (without the $ sign) : 0.03 The total future bonus of $1.7 million is worth $729947.77 today. Press ENTER to exit. Hint: Note that there is a cash flow every five years, but potential returns are compounded annually. Let r be the discount rate and q = (1 + r) 5, and apply the following equation. cq + cq + ...+ can =.9-qn+1 1 - q Alternatively, you may sum up every term one by one, or come up with a loop. Remember there is another payment at the end of year 38
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
