Your project as a programming consultant is to create a

Assignment Help JAVA Programming
Reference no: EM13380881

Your project as a programming consultant is to create a program that develops an amortization schedule.  Your program should be written as a Java applet.  As an applet, your program will be executed through the use of a browser.  Your applet should prompt the user for three different inputs, loan amount, the duration of the loan and the annual interest rate.  Your task is to create a Java applet that provides the user with a payment schedule, or amortization schedule.  The schedule must include monthly payment amount, interest amount, principal amount and the remaining balance per pay period.  The amortization table must be presented to the user in a nicely formatted table.

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 $35,000 loan over 8 years at 8.5% interest rate.

Loan Amount: $35,000

Interest Rate per pay period: 0.085

Pay Periods: 96

Monthly Payment Amount: $503.72

Payment     Monthly Amount        Interest      Principal     Balance

                                                                                     35,000.00

1                              503.72        247.92       255.80     34,744.20

2                              503.72        246.10       257.62     34,486.58

3                              503.72        244.28       259.44     33,965.86

....

95                            503.72            7.07       496.65          500.78

96                            503.72            3.55       500.17              0.61

The necessary calculations are below:

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, and so forth 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:

importjava.applet.*;

importjava.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:

<HTML>

<HEAD>

<Title>A Simple Program.</Title>

</HEAD>

<BODY>

Here is the output of my program:

<APPLET CODE="HelloWorld.class"WIDTH="150" HEIGHT="25">

</APPLET>

</BODY>

</HTML>

Reference no: EM13380881

Questions Cloud

A hummingbird species feeds almost exclusively on the : a hummingbird species feeds almost exclusively on the nectar of helicon. flowers. each hummer has a circuit that takes
Physical prices vs financial settlements for natural gas in : physical prices vs. financial settlements for natural gas. in lesson 6 you looked-up some cash prices at various hubs
Which of the following has not occurred over time in the : which of the following has not occurred over time in the past several decades in the physician services market?a. the
A psychological test used to measure the level of hostility : a psychological test used to measure the level of hostility is known to produce scores which are normally distributed
Your project as a programming consultant is to create a : your project as a programming consultant is to create a program that develops an amortization schedule.nbsp your
Who dropped the ballin october 2011 industrial water : who dropped the ball?in october 2011 industrial water treatment company iwt introduced kelate a new product that was 10
What is the difference between line personnel and staff : what is the difference between line personnel and staff personnel? why are the two groups so often in conflict? do you
A lot of reading and thinking about management issues : a lot of reading and thinking about management issues. submit a brief blog discussing your insights concerning what you
Question no 1a light bulb is connected to a 260v potential : question. no 1a light bulb is connected to a 260v potential and produces 120-watts of light and heat. what is the

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Write following java expressions in mathematical notation

Write the following Java expressions in mathematical notation.

  Write a class named test scores

Write a class named TestScores.The class constructor should accept an array of test scores as an argument.The class should have a method that returns the average of the test scores.

  Create a file that contains your favorite movie quote

Create a file that contains your favorite movie quote. Use a text editor such as Notepad, and save the file as quote.txt. Copy the file contents,

  Display an image of an apple on the screen

Display an image of an apple on the screen, then after 3 seconds automatically change the display to an orange.

  Solution for the problem and mention algorithms

Explain the purpose of the program as detail as possible and develop a solution for the problem and mention algorithms to be used and list data structures to be used in solution.

  Chat monitoring system

The name of the project is chat monitoring system. in the file you will see the screenshot diagram 2A are my design, i want it to be upgrade, to look professional like the diagram 2B. please java, netbeans and GUI. please can I have only the client s..

  List data structures to be used in solution

write a program that will prompt the user for an input file name to read from. The Input file will consist of records made up of first name, last name and an account balance of individuals and store the individuals in an ArrayList.

  What aspects of judaism are rejected or reinterpreted

What theology does Jesus present in the two excerpts from the Gospels that are a part of the readings? What aspects of Judaism are strongly represented? What aspects of Judaism are rejected or reinterpreted?

  Write a program using an array that will store

Using java programing : Write a program using an array that will store input data. Prompt the user for and read 6 numbers between 70 and 90. Verify the numbers should be greater than 70 and less than 90. If the number is less than

  Write program that uses top five countries national wealth

Write a program that uses the top five countries' National Wealth to calculate the average of those five countries.

  Explain a gui interface using advanced java swing classes

Implement a threads and a GUI interface using advanced Java Swing classes. The project will be graded according the criteria for the final project

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