Question: Writing Functions for Future Values in python Now write two functions to compute the future value of an investment. One function will handle compounding k

Writing Functions for Future Values in python
Now write two functions to compute the future value of an investment. One function will handle compounding k times per year, and the other will handle
continuous compounding.
future_value_period should take four arguments: A principal, a rate, a period, and a time. It should return the future value of the investment. (It
shouldn't use a print statement.) Also define and test the `future_value_continuous`
future_value_continuous should take three values: A principal, a rate, and a time. It should return the future value of the investment. (It shouldn't
use a print statement.)
I have started the function definition for future_value_period below, but have not filled in the definition, and I have not included any parameters.
The statement pass in Python means "do nothing", so as the functions are defined below, they will not do anything. Replace pass with whatever
function body you need:
def future_value_period(,):
pass
Test your future_value_period function by running it with a set of inputs below. (I suggest the values above that give you a known result.)
-[50]: # Test your function here:
Writing Functions for Future Values in python Now

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!