Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Write an HTML document that looks similar to Loan Calculatorx (- ) Lg file:///C:/Users/rab29/Dropbox/books/handbooi Qi Loan Calculator Amount borrowed (principal) Annual interest rate (example:

image text in transcribed

2. Write an HTML document that looks similar to Loan Calculatorx (- ) Lg file:///C:/Users/rab29/Dropbox/books/handbooi Qi Loan Calculator Amount borrowed (principal) Annual interest rate (example: .065) Number of years Payments per year 80000 0.05 30 Compute payment Number of payments paid to date $429.46 180 $54306.40 Compute payoff amount Reset Write four functions with these headers: function doPayment() function doBalance() function computePayment(principal, annualRate, years, periodsPerYear) function computeBalance(principal, annualRate, years, periodsPerYear, numberOf PaymentsPaidToDate) The first two functions (doPayment and doBalance) a. take no parameters b. are called from an onclick attribute C. get input from the user d. call the computePayment or the computeBalance function e. display a result to the user The computePayment function computes and returns the monthly payment for a loan with a fixed annual interest rate. The formula for computing a loan payment is ar where p is the payment per period, a is the loan amount, r is the interest rate per period, and n is the total number ojf periods throughout the life of the loan The computeBalance function computes and returns the balance for a loan with a fixed annual interest rate. The formula for computing the balance of a loan after n payments have been made is np(+-1) b-a1+r) where b is the balance or payoff amount, a is the loan amount, r is the interest rate per period, p is the payment per period, and n is the number of payments paid to date

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

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

Define Decision making

Answered: 1 week ago

Question

What are the major social responsibilities of business managers ?

Answered: 1 week ago

Question

What are the skills of management ?

Answered: 1 week ago