Question: Write an HTML document that looks similar to Write two functions with these headers: function doFV() function computeFutureValue(principal, annualRate, years, periodsPerYear) The first function (doFV)

Write an HTML document that looks similar to

Write two functions with these headers:

function doFV() function computeFutureValue(principal, annualRate, years, periodsPerYear) 

The first function (doFV)

takes no parameters

is called from the onclick attribute

gets input from the user

calls the computeFutureValue function

displays the result to the user

The second function (computeFutureValue) computes and returns the future value of an investment. The formula for computing the future value of an investment is: f = a (1 + r)n where f is the future value, a is the investment amount sometimes called the principal, r is the growth rate per period, and n is the total number of periods throughout the life of the investment.

Investment Calculatc x Cfile:///C:/Users/rab29/Dropbox/bool QE Investment Calculator Amount invested (principal) Annual rate (example:.08) Number of years Periods per year 100 0.07 10 4 $200.16 Compute future value Reset

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!