Question: Future value Here is a C++ function which inputs (i) today's cashflow F_0, (ii) today's time t_0, (iii) future time t_1, (iv) continuously compounded interest

 Future value Here is a C++ function which inputs (i) today's

Future value Here is a C++ function which inputs (i) today's cashflow F_0, (ii) today's time t_0, (iii) future time t_1, (iv) continuously compounded interest rate r. The value of r is expressed as a percentage, if the interest rate is 5% then r = 5. double future_value (double F0, double t0, double t1, double r) { double r_decimal = 0.01*r: double F1 = F0+exp(r-decimal * (t1-t0)): return F1: } Compile and run this for yourself (you will need to write a main program). Try a few input values. You should be able to implement a similar calculation in Excel and get the same answers. I say "future value" but note that the function will work even if t_1

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 Databases Questions!