Generate an amortization schedule

Assignment Help JAVA Programming
Reference no: EM13940883

You have been hired as a Java programmer to generate an amortization schedule. This program should be in the form of a Java applet. Inquiries will be Web-based using a browser. Your program should execute within the browser and prompt the user for four different inputs. The first is the loan amount, the second is the length of the loan and the last is the annual interest rate. Your task is to write a Java applet that will provide the user with their payment schedule. This amortization schedule would include their monthly payment amount, interest amount, principal amount and their remaining balance per pay period.

The applet input will be the loan amount, annual percentage rate (APR), and the number of years to pay out the loan. The output will be the loan amount, interest rate per pay period number of pay periods and the monthly payment. This information would be followed by the amortization schedule. Following is an example of the expected output for a $20,000 loan over 5 years at 1% interest rate.

Loan Amount $20,000
Interest Rate per pay period 0.00625
Pay Periods 60
Monthly Payment Amount $400.76

Payment Monthly Amount Interest Principal Balance
20,000.00
1 400.76 125.00 275.76 19,724.24
2 400.76 123.28 277.48 19,446.76
3 400.76 121.54 279.22 19,167.54
....
59 400.76 4.96 395.80 398.18
60 400.67 2.49 398.18 0.00

The necessary calculations were provided to you:

p,loan amount or principal
n,number of payments = payments per year * number of years
i,interest rate per pay period = APR/payments per year = APR/12
t,interest paid = interest rate per pay period * previous principal balance
r,monthly payment amount = principal * interest per period / (1-(1+(interest per period)/100)^(number of payments-1)^2)
a, principle amount = monthly payment amount - interest paid
b, principle balance = previous balance - principle amount
Hint: In Java syntax the monthly payment calculation is:

r=((p*(i/100))/(1-(Math.pow((1+(i/100)),(n*(-1))))));

Details:

Please note that your program should accept three inputs:

The loan amount,
Annual Percentage Rate, and
The number of years to pay out the loan

And calculate six types of outputs:

The monthly payment amount,
Interest per pay period,
Number of pay periods,
Amortization schedule (including amount of interest per pay period, principal per pay period, and principle balance)
When coding your applet, remember the following:

Your applet needs to extend the Applet (or JApplet) class. Of course, you need to import the appropriate applet package(s).
Your applet needs to have declarations for the fields, labels, components, widgets,etc. that you use in the applet.
There are applet methods that are called automatically by browsers (please see your textbook). Make sure you initialize (implement init()) your applet.
You need the code that does the calculation of the interest.
You need to handle the event of pressing the button. There are some examples in the book (ask your instructor for the specific pages).
You may use this sample code for example.
Please create an HTML page that contains the applet tag. In addition to your mortgage calculator commented Java code, you need to provide the HTML page.

Here is the Hello world Java code example to create an applet:

--------------------------------------------------------------------------------

import java.applet.*;
import java.awt.*;
/**
* The HelloWorld class implements anapplet that
* simply displays "HelloWorld!".
*/
public class HelloWorld extends Applet {
public void paint(Graphics g){
// Display "Hello World!"
g.drawString("Hello world!",50, 25);
}
}

--------------------------------------------------------------------------------

Then you would compile the class and create an HTML page called Hello.htm:

--------------------------------------------------------------------------------

Deliverable Details:

Upload the commented source code file of your calculator, the class file and the HTML file.

Reference no: EM13940883

Questions Cloud

Determine the maximum velocity and maximum acceleration : Determine the maximum velocity, the maximum acceleration and the acceleration and the force acting on the component when it is 50 mm from the central position.
Define philosophy issue individual rights, public protection : Explains the philosophy and approach for balancing these two (2) issues: individual rights and the public's protection. Explains the philosophy and approach for balancing of these two (2) issues: use of reward and punishment in criminal justice.
Determine the angular velocity of the connecting rod ab : The crank rotates at a speed of 60 rpm and the centre distance OC is 90 mm. At the instant shown determine the velocity of C, the angular velocity of the rocker BC and the angular velocity of the connecting rod AB.
How might your lifetime career goals change : In this Assignment you will begin your career search on the website of the U.S. Department of Labor, Bureau of Labor and Statistics (www.bls.gov) for your degree that you have earned. How might your lifetime career goals change
Generate an amortization schedule : The applet input will be the loan amount, annual percentage rate (APR), and the number of years to pay out the loan. The output will be the loan amount, interest rate per pay period number of pay periods and the monthly payment
What is the incremental income : What is the incremental income (loss) associated with accepting the special order?
Determine the angular velocity of the connecting rod : The point C on the connecting rod is 200 mm from the crankpin at A. At the position shown determine the velocity of the piston, the velocity of the point C and the angular velocity of the connecting rod.
Explain the value of narratives or storytelling : Explain the value of narratives or storytelling. Why might communicating a lesson in story format (oral or written form) be different than providing a set of rules to follow?
Calculates and displays the mortgage payment amount : Write a Java program without a graphical user interface that calculates and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. In this program, hard code the amou..

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Calculate the percent of kcal from each macronutrient

Calculate the percent of kcal from each macronutrient and the percent of kcal by fluids.

  Program that allows the user to enter an unknown number

Writer a program that allows the user to enter an unknown number of characters, stores those characters in a data structure (a vector) and then prints the values to the screen.

  Write a program that reads a file name from the keyboard

Write a program that reads a file name from the keyboard. The file contains integers, each on a separate line. The first line of the input file will contain the number of integers in the file. You then create a corresponding array and fill the array ..

  Calculate monthly commissions for n salespersons

Understanding of arrays - arrayLists, objects, classes, sorting and searching. Develop a java application program for such a scenario that a local department store manager wants to use it for calculating monthly commissions for N salespersons.

  The program randomly generates the quiz question one by

the program randomly generates the quiz question one by one from a set of available questions on general knowledge

  Demonstrate all of the methods of your stack.

Create a StackTest.java file to demonstrate all of the methods of your stack. Instantiate two stacks; one for String and one for Integer. Push words/integers onto your stack. After you have pushed a series of words/integers on your stack use..

  Imagine that you have been assigned

Imagine that you have been assigned to implement a sorting program. The goal is to make this program general purpose, in that you don't want to define in advance what record or key types are used

  Write a java program to implement the finite field

Write a program called "GF2.java" to implement the finite field GF(p n ) where p is a prime number and n is a positive integer.  You also need to write four methods to realize "+", "-", "´", and "/".

  Creat a class named vehicle that acts as a superclass

Write a UseVehicle class to instantiaate the two Vehicle objects and print the objects values. Save as UseVehicle.java

  Development of a simple menu driven program

Identify all of the lines of code within the program that are associated with obtaining user input. This can be done by either copying the lines into your answers or highlighting the lines within the code.

  Write a java program to prompts a user to enter information

Write a Java program prompts a user to enter demographic information

  How to count number of objects (instances) created

How to count number of objects (instances) Created, use java code and please be descriptive

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