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

  Depicts a model for recording flight and passenger

This assignment requires you to design, implement and test a program using Java features from the first half of the subject content. You are required to implement in Java all the classes presented in the conceptual model according the specificatio..

  Create a web application for sheridan restaurant

Create a web application for Sheridan Restaurant Reviews that contains the following functionality - Display a table of all restaurants based on the city entered by the user

  Implementation the two classes

Program Specifications: In the new implementation, the two classes, Student and Grades, are defined with the following operations/methods.

  Method that receives an array and returns with no duplicate

Write a program that contrains a method that receives an array and returns a new array with no duplicates.

  Design an object hierarchy

Design an object hierarchy and design your own UML class diagram to reflect the classes and relationship required by your program.

  Considered to be an improved version

Part (c) is considered to be an improved version of Part (b). You may use an array (2-dimessional) to store some values that has been computed during the run so that when making recursive calls the program does not compute certain values over and ..

  Implement the scan, c_scan, and look disk scheduling algo

The code must have a separate method for each scheduling algorithm and they all have to be called from the main() method.

  Primary care-secondary care and tertitary care

Discuss the differences among primary care, secondary care, and tertitary care and the 6 C's of primary care

  Objective to learn the use of comments and basic math

objective to learn the use of comments and basic math operators.create a new folder called assign21 under

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

  Display the value stored at the index

Display the value stored at the index. Take a screenshot to verify that the words in your Array or ArrayList are displayed successfully.

  Implement a single threaded game engine

Implement a single threaded game engine and single player user interface for a casino style dice game. The rules are simple, the player places a bet and then rolls two dice before the house rolls against the player

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