Computers and Technology

A file named loan. html, write an HTML document that looks similar to figure 9-7 in the textbook. Write four functions with these headers: function doPayment ( )
function doBalance ( )
function computePayment (principal, annualRate, years, periodsPerYear)
function computeBalance (principal, annualRate, years, periodsPerYear, )
The first two functions (doPayment and doBalance) do the following:

Take no parameters.
Are called from an onclick attribute.
Get input from the user.
Call the computePayment or the computeBalance function.
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

p = ar
1 − (1 + r)−n
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 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 d payments have been made is

b = a (1 + r)d − p ( (1 + r)d − 1 )
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 d is the number of payments paid to date.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:00, brooklyn4932
What engine component is shown in the above figure?
Answers: 1
image
Computers and Technology, 24.06.2019 02:30, talia43
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
image
Computers and Technology, 24.06.2019 02:30, journeyhile5
How to apply the fly in effect to objects on a slide
Answers: 1
image
Computers and Technology, 24.06.2019 11:00, soystersoce
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
Do you know the correct answer?
A file named loan. html, write an HTML document that looks similar to figure 9-7 in the textbook. Wr...

Questions in other subjects:

Konu
Physics, 14.09.2020 20:01
Konu
Mathematics, 14.09.2020 20:01
Konu
Biology, 14.09.2020 20:01
Konu
Geography, 14.09.2020 20:01
Konu
Mathematics, 14.09.2020 20:01
Konu
English, 14.09.2020 20:01
Konu
English, 14.09.2020 20:01
Konu
Biology, 14.09.2020 21:01
Konu
Mathematics, 14.09.2020 21:01
Konu
Mathematics, 14.09.2020 21:01