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

  Write java program which will permit user to input data

Write the Java Program which will permit the user to input data. The data will be validated using a loop that requires the user to input the data until it is correct or in the correct range. T

  What is relationship between hashing and digital signatures

The security advantages of using two-factor authentication, such as the integrated fingerprint reader in the more recent iPhone models, particularly to support internet services (such as online banking)

  Cognitive-based approaches to understanding motivation

Compare and contrast the need-based and cognitive-based approaches to understanding motivation?

  The goal is to create a project that would let a user

the goal is to create a project that would let a user compute area and perimeter of a polygon. restrict the type of

  A program that reads a four-digit number from the keyboard

Write a program that reads a four-digit number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, the output should be 12. Hint: Break the string into characters and then convert each character to a va..

  To report the amount of the fine

To report the amount of the fine, which is $25 for the first hour or pan of an hour that the car is illegally parked, plus $10 for every additional hour or part of an hour that the car is illegally parked

  Descriptionyou are to write a program that determines the

descriptionyou are to write a program that determines the day of the week for new years day in the year 3000. to do

  1design an abstract data type in java that represents a

1.design an abstract data type in java that represents a musical pitch noteadt.java. the adt should store the note or

  Create an employee class.

Create an Employee class. Items to include as data members are employee number, name, date of hire, job description, department, and monthly salary.

  Compare and contrast the safavid and ottoman empires

How did the creation of the Janissary system shape the development of the Ottoman Empire? What precipitated the decline of the Ottoman Empire? Compare and contrast the Safavid and Ottoman empires?

  Algorithm analysis with advanced data structures

Algorithm Analysis with Advanced Data Structures, Your good friend, a Rock Star, asked you to create a Time Manager app for him, The Rock Star performs gigs at certain dates, all around the country - at most one gig per day

  Task 1 create a new project in eclipsecreate a package

task 1 create a new project in eclipse.create a package called lsquopeople within this project. download the start up

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