Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Why are benefi ts classifi ed?

Answered: 1 week ago

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago