(5/5)

# Create a simple HTML web page and form for a auto loan calculator.

INSTRUCTIONS TO CANDIDATES

Purpose: Become familiar with JavaScript syntax, data types, and control structures.

Additionally, increase experience with basic HTML. Points: 100

Assignment:

Create a simple HTML web page and form for a auto loan calculator. The form should to read the amount to be borrowed, down payment, interest rate, and term (payback period) and calculate and display the loan information1 (monthly payment amount and total payments). A Javascript function should be used to read the data and calculate the loan information (payment amount and total payments).

Create an HTML form for the loan amount, interest rate, and loan term (in years), and a button to “calculate mortgage information”. The HTML file must include a JavaScript function to calculate the payment and total amount borrowed.

The HTML page should include the class, assignment, and your name. Refer to the example output for formatting illustration.

The JavaScript function must verify each input is a valid number. If input is not valid, display an appropriate error message. Additionally, ensure that the loan amount is less than or equal to \$500,000.00, that the interest rate is between 0% and 15% (inclusive), and that the loan term is between 1 and 6 years. Refer to the example error message.

The payment amount can be calculated as follows:

(irate∗(1+ irate)term)

payment  = amount ∗

((1+ irate)term

−1.0)

The interest rate entered on the form is the annual rate. The irate is the monthly interest rate.

The payment amount and total cost should include fully formatted currency values (i.e.,

\$xx,xxx.xx) – including \$ sign and commas as appropriate. Refer to the example output.

(5/5)

## Related Questions

##### . Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

##### . The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

##### . Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

##### . SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

##### . Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Hire Me

Hire Me