Write a function that prints a loan amortization table (principal, interest rate, and number of months) are provided via form elements. The principal amount and interest rate should be entered through a text box. However, the number of months should be entered through a drop down list containing the values 12, 24, 36, 48, and 60. A button to perform the calculation should be created, and the inputs should be grouped in a field set. When the button is pressed, a HTML <div> element should be updated to hold the table.
Please see attachment for full question.© BrainMass Inc. brainmass.com October 25, 2018, 7:00 am ad1c9bdddf
Compute the present value of this stream of income at a discount rate of 8%. Compare the present values of the income stream under the three discount rates.
Suppose you just inherited a gold mine. This gold mine is believed to have three years worth of gold deposit. Here is how much income this gold mine is projected to bring you each year for the next three years:
Year 1: $42,000,000
Year 2: $62,000,000
Year 3: $99,000,000
Compute the present value of this stream of income at a discount rate of 8%. Remember, you are calculating the present value for a whole stream of income, i.e. the total value of receiving all three payments (how much you would pay right now to receive these three payments in the future). Your answer should be one number - the present value for this oil well at a 8% discount rate but you have to show how you got to this number.
Now compute the present value of the income stream from the gold mine at a discount rate of 6%, and at a discount rate of 4%. Compare the present values of the income stream under the three discount rates.