Question: I need help with this code. I already asked this question once but the code I was given did not work correctly. Something was wrong

I need help with this code. I already asked this question once but the code I was given did not work correctly. Something was wrong in the formula.

Here's the question again:

I need help with this code. I already asked this question once

2. Write an HTML document that looks similar to Loan Calculator (- file:///C:/Users/rab29/Dropbox/books/handboola * Loan Calculator Amount borrowed (principal) Annual interest rate (example: .065) Number of years Payments per year 80000 0.05 30 12 $429.46 180 $54306.40 Compute payment Number of payments paid to date 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, numberOfPaymentsPaidToDate) 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 an where is the payment per period, is the loan amount, r is the interest rate per period, and n is the total number of 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 where b is the balance or payoff amount, 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 2. Write an HTML document that looks similar to Loan Calculator (- file:///C:/Users/rab29/Dropbox/books/handboola * Loan Calculator Amount borrowed (principal) Annual interest rate (example: .065) Number of years Payments per year 80000 0.05 30 12 $429.46 180 $54306.40 Compute payment Number of payments paid to date 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, numberOfPaymentsPaidToDate) 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 an where is the payment per period, is the loan amount, r is the interest rate per period, and n is the total number of 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 where b is the balance or payoff amount, 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

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!