Explore BrainMass
Share

JavaScript to create an Amortization calculator.

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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
https://brainmass.com/computer-science/javascript/javascript-to-create-an-amortization-calculator-486399

Attachments

Solution Summary

This solution contains an attachment with javascript code to create an amortization calculator. A form is created to enter the Loan Amount, an Interest Rate and number of months for payoff and when the user click on the calculate button, it performs the operation to create an amortization table based on the entered data. The final table contains the Balance, Interest and Principal Amount of each month(as selected by the user).

$2.19
See Also This Related BrainMass Solution

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.

View Full Posting Details