How much of the monthly payment is applied to the interest

Assignment Help Programming Languages
Reference no: EM13935632

Write a function that prints a loan amortization table (principal, interest rate, and number of months) are provided via form elements. The principal amount and interest rate should be entered through a text box. However, the number of months should be entered through a drop down list containing the values 12, 24, 36, 48, and 60. A button to perform the calculation should be created, and the inputs should be grouped in a field set. When the button is pressed, a HTML <div> element should be updated to hold the table.

The input parameters are a loan amount (floating point), an interest rate (floating point), and a number of months for payoff (integer). The function should return a string containing an HTML table.

You will then calculate a monthly payment based on the following formula:

Where:

• M is the monthly payment

• P is the principal amount (the amount of the loan)

• r is the monthly interest rate (i.e. 1/12th of the annual interest rate)

• n is the number of payments (i.e. the number of months of the loan)

Furthermore, we can calculate how much of the monthly payment is applied to the interest, and how much is applied to the principal by the formula:

Where:

• i is the amount of interest

• P is the remaining principal amount

• r is the monthly interest rate

1093_b.png

Reference no: EM13935632

Questions Cloud

How useful was video to understanding organizational power : How useful was the video to you in understanding organizational power? What is your impression of Dr. Pfeffer's speaking and presentation style? Does he project "expert power" in his presentation
Do you think piedmont will overestimate npv of the project : The components produced are to be exported to Piedmont's headquarters in Italy, where they will be used in the production of computers. Do you think Piedmont will overestimate or underestimate the net present value of this project
Hr systems in the context of the workplace : What are the key strengths and limitations of the two HR systems in the context of the workplace?
Impact of tourism development in the precinct : This assignment requires students to evaluate a precinct's ability to meet visitor needs. Key considerations include assessing whether visitor needs are met, identifying challenges and opportunities, and subsequently recommending strategies for en..
How much of the monthly payment is applied to the interest : The input parameters are a loan amount (floating point), an interest rate (floating point), and a number of months for payoff (integer). The function should return a string containing an HTML table.
Briefly describe the methods used by bacteria and fungi : Briefly describe the methods used by bacteria and fungi to tolerate environmental heavy metals. Include references and your views on the potential commercial applications of bacteria and fungi.
Why only eukaryotic cells evolved in multicellular organisms : Bacteria never form any sort of grouping that resembles a multicelled organism with an internal division of labor among its cells. Think about the attributes of prokaryotic bacterial cells and the eukaryotic cells of which all multicellular organi..
What factor did pepsico likely consider in deriving its rate : What factors did PepsiCo likely consider in deriving its required rate of return on the project in Brazil? Describe the uncertainty that surrounds the estimate of future cash flows from the perspective of the US parent.
Does the political action violate individual rights : All organizations have internal politics. However, most organizations keep their political battles private and it is rare that the public will know the details about political intrigue within the major corporations. Does the political action viola..

Reviews

Write a Review

Programming Languages Questions & Answers

  Calculator to do the suitable matrix exponentiation

Every company makes particular restrictions for passwords, but employees of ABC have particularly strange restrictions. Their passwords may only consist of the lowercase letters

  Develop an encryption program

Your employer, SGA (Secretive government Agency) wants you to develop an encryption program. After doing some research you have two candidate algorithms.

  Create the gui for object-s processing methods

Create pseudocode for each of the classes. Create the GUI which will make the objects and give access to each object's processing methods.

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Calculate transaction-based indi­rect overhead cost

calculate transaction-based indi­rect overhead cost (receiving, engineering, and packing) per unit for each of the three products. Use this new information to recalculate overall cost per unit for products A, B, and C.

  Create program which lists total points scored

Create program which lists total points scored for each of 30 classrooms. Include invalid input check if a proper room number is not entered.

  Create a program named bookexceptiondemo

Create a program named BookExceptionDemo for the Peterman Publishing Company. The company has decided that no published book should cost more than 10 cents per page. Create a BookException class whose constructor re-quires three arguments: a..

  Matrix multiplication code with mpi

Matrix multiplication code with MPI. At the beginning of each of the programs, write names of group members in the comment line.

  Write an algorithm that converts a linear measurement

Write an algorithm that converts a linear measurement in feet and inches into meters. One inch is equivalent to 2.54 centimeters.

  Prepare a php form which allows input for an individual and

create a php form that allows input for an individual and displays the information on a subsequent page upon

  Create a class for performing arithmetic with fractions

Create a class called Rational for performing arithmetic with fractions. Write a program to test your class. 1/2+2/3+3/4.......+98/99+99/100.Use integer variables to represent the private data of the class

  Write a javascript program for the validation

Write a JavaScript program for the validation case using the RegExp method - If the user enters a valid phone number, convert it to the form (123)456-7890 (if it is not already in this form).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd