Question: 1. Complete the HTML sections - attributes are in bold line 52. Add an input field type text with the following properties id - mortgageLoan

1. Complete the HTML sections - attributes are in bold line 52. Add an input field type text with the following properties id - mortgageLoan on key up listener - calls validateValue function for this box on change listener - calls calculateMortgage line 55. Add an input field type text with the following properties id - interestRate on key up - calls validateValue for this box on change - calls calculateMortgage lines 60-64 for the select element, add the following options 10 - value 10 15 - value 15 20 - value 20 30 - value 30 40 - value 40 line 76 - Add an input field type text with following properties id - mortgageTotalBox must be a read only field line 83 - Add an input field type text with the following properties id - monthlyPaymentBox must be a read only field

2. Complete the missing javascript code You will complete 4 functions: totalPayment(p,r,n) - compute formula A monthlyPayment(p,r,n) - compute formula B calculateMortgage() - handle main processing validateValue(box) - verify input is valid Instructions for each function can be found within the skeleton html file. Formula A: ( ) x N r x p 1 (1 + r) n Formula B: (1 + c) 1 n p x ( r x (1 + c) ) n Always keep in mind that the interest rate 6% must be used the following way: 6% (6 / 100) / 12 6 per cent monthly Also, payments term must be calculated in months, so if a mortgage is at 15 years: 15 * 12 180 payments in total.

skeleton

Mortgage Calculator

Mortgage Amount Mortgage Rate Mortgage Term
$ %
Total Mortgage $
Monthly Payments $

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!