Question: I just ask a question about some javascript and the answers I received are not working unfortunately. From the code attached 600 for investment, 5

I just ask a question about some javascript and the answers I received are not working unfortunately. From the code attached 600 for investment, 5 for growth and 4 for time should give 630, 1291.50, 1986.50, and 2715.08 in order form year 1 to 4. Instead I am getting (see table). This the formula:

first year: B(1) = p* (1 + i) second year: B(2) = (p + B(1)) * (1 + i) third year: B(3) = (p + B(2)) * (1 + i) the t-th year: B(t) = (p + B(t-1)) * (1 + i)

Year Principal Balance
1 600.00 7200.00
2 7200.00 46800.00
3 46800.00 284400.00
4 284400.00 1710000.00

Code is:

Investment Calculator

Investment Calculator

Annual Investment:

Annual Growth Rate:

Length of Investment (in years):

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!