Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Javascript, When you open the loan.html file in a browser, you should see something like this: Person 1 - | x JavaScript Loan Cakul

Using Javascript,

image text in transcribedimage text in transcribed

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

When you open the loan.html file in a browser, you should see something like this: Person 1 - | x JavaScript Loan Cakul x -) file:///C./Users/YA12660/Documents/teach/ !! AppsSearch 8080 la medsun Learning the Kom @ Time Warner Cabl S? System Dashboar Enter Loan Data Amount of the loan (S): 10000 Annual interest (%) Repayment period (years):15 Zipcode (to find lenders): 27513 Approximate Payments: Calculate Monthly payment: Total payment Total interest Loan Balance, Cumulative Equity, and Interest Payments 14234 Total Interest Payments Total Equity Loan Balance 79.08 $14234.29 $4234.29 Modify this program so that the annual interest rate is not based on user's input, but based on user's credit score. Below is the logic: Credit Score | =400 | >=500 | >=600 | >=700 >=800 500 600 700 file:///C/Users/YA12660/Documents/teach/Nodelecture-materiallabs0 !!: Apps d Search 8080 9 medsun Learning the Korn @ Time Warner CablSystem Dashboar Enter Loan Data: Amount of the loan (S) 10000 Credit Score Repayment period (years): 15 Zipcode (to find lenders) 27513 Approximate Payments: Calculate Monthly payment: Total payment Total interest Loan Balance, Cumulative Equity, and Interest Payments 19343 Total Interest Payments Total Equity Loan Balance $107.46 S19342.S9 S9342.89 loan.html X !DOCTYPE html> head> title: JavaScript Loan Calculator /* This 1s a CSS style heet: it adds style to the program output */ output(font-weight: bold; #payment { text-decoration ; underline; } /* For element with id-payment" */ #graph { border: solid black 1px; } /* Chart has a simple border */ th, tdt vertical-align: top; ) /style> it02-1 *Calculated values in bold * /* Don't center table cells/ 13 This is an HTML table with Kinput> elements that allow the user to enter data andspan> elements in which the program can display its results . These elements have ids like "interest" and "years".These ids are used in the Javascript code that follows the table. Note that some of the input elements define "onchange" or "onclick" event handlers. These specify strings of Javascript code to be executed when the user enters data or clicks. 20 21 Enter Loan Data: tr>cth> Approximate Payments: find lenders): 33 34 - (to 35 43
th Loan Balance, Cumulative Equity, and Interest Payments/th/r> 23 24 25 26 27 28 29 30 31
Amount of the loan ($): x/tdx/tr> credit score:
!--The rest of this example is JavaScript code in the

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 M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions