In Assignment 3 we calculated Future Value using a formula:  FV = PV(1+i)t Solved.ZIP

In Assignment 3 we calculated Future Value using a formula: FV = PV(1+i)t Solved

In Assignment 3 we calculated Future Value using a formula:

FV = PV(1+i)t

Where PV is the amount you are going to invest, at interest rate i, for t time periods.

In this assignment, we will extend this, using loops. Our new formula is:

Vt+1 = Vt + (Vt * I)

This is the original way it was calculated, one period at a time. If you had ten time periods (t = 10), then you have to do ten calculations, with the FV at time t becoming the PV at t+1.

So build an application that will calculate Future Value of an investment, given the Present Value, the interest rate per period, and the number of periods.

Create the HTML input and PHP processing files

Use a pull-down for the interest rates (one of the values should be 0.05) .

Print out each periods' t value, plus PV and FV in table form. You will have to use a loop.
Powered by