Question: It is a python code 1) When investing money, an important concept to know is compound interest. The equation FV = PV (1+rate)^periods periods relates
It is a python code
1) When investing money, an important concept to know is compound interest.
The equation FV = PV (1+rate)^periods periods relates the following four quantities.
The present value (PV) of your money is how much money you have now. The future value (FV) of your money is how much money you will have in the future. The nominal interest rate per period (rate) is how much interest you earn during a particular length of time, before accounting for compounding. This is typically expressed as a percentage. The number of periods (periods) is how many periods in the future this calculation is for. Finish the following code, run it, and submit the printed number. Provide at least four digits of precision after the decimal point.
def future_value (present_value, annual_rate, periods_per_year, years): """ Input: the numbers present_value, annual_rate, periods_per_year, years Output: future value based on formula given in question """ rate_per_period = annual_rate / periods_per_year periods = periods_per_year * years
# Put your code here.
print("$1000 at 2% compounded daily for 4 years yields $", future_value(1000, .02, 365, 4))
Step by Step Solution
There are 3 Steps involved in it
To complete the Python code and calculate the future value using the provided formula for compound interest well need to finalize the futurevalue func... View full answer
Get step-by-step solutions from verified subject matter experts
