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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started