Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

=+ what roles should government play in them ?

Answered: 1 week ago

Question

=+ Why do we have markets and, according to economists,

Answered: 1 week ago