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

  Javascript validation - cgi program

CGI mailer script form-mail.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable - BMIS 310

  What are bufferedinput/outputstreams

What are BufferedInput/OutputStreams and why are they used? Write some Java code to illustrate how to create a BufferedInputStream.

  Allow the user to display a work history report

The 'report screen' shall:Allow the user to display a work history report for an individual or for all employees for the two weeks prior to the report request.

  Creat a class that saves the grades

Creat a class that saves the grades of students in an array, and contains a few methods that do some statistics on these grades. Your task is to create this class, and create client testing class that does all the necessary tests of its methods.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Prepare executable programs a translate program and a

prepare executable programs. a translate program and a dictionary program. the programs will be written in any

  Java''s type int has limit onhow large aninteger it can store

Java's type int has a limit on how large an integer it can store. This limit can be circumvented by representing an integer as an array of digits. Write an interactive program that adds two integers of up to 50 digits each.

  Program that initializes an array with ten random integers

Write a JAVA program that initializes an array with ten random integers and then prints four lines of output, containing

  Product maintenance with a database

Use a class named ProductDB that's in the music.data package to add, update, and delete the products in the Product Maintenance application.

  Array named peopletypes that can store a maximum

Define a 1-D array named peopleTypes that can store a maximum of 50 integer values that will be entered at the keyboard. Enter a series of 1's, 2's, 3's and 4's into the array, where a 1 represents an infant, a 2 represents a child, a 3 represents..

  Methods are commonly used to break a problem down into

methods are commonly used to break a problem down into small manageable pieces. a large task can be broken down into

  Write java program to display results in java applet

Write down the java program which displays following results in java applet. Permits the user to enter three numbers (use JOptionPane for this) and prints out average of those value on screen.

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