The calculations were provided to you by a real estate agent

Assignment Help JAVA Programming
Reference no: EM13941703

Your team has been hired as a Java programmer by Real Estates Solutions Inc. Your task is to write a Java applet for their web site that would enable customers to figure out their monthly mortgage payments.

The applet input will be the loan amount, annual percentage rate or APR, and the number of years to pay out the loan. The output will be: the monthly payment amount, the number of payments, the total paid including interest, and total interest paid.

The calculations were provided to you by a real estate agent:

p, loan amount or principal
n, number of payments = payments per year * number of years
i, interest per period = apr/payments per year = apr/12
r, monthly payment amount = principal * interest per period / (1-(1+(interest per period)/100)^(number of payments-1)^2)
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 or APR, and
The number of years to pay out the loan
And calculate four outputs:

The monthly payment amount,
Number of payments,
The total paid including interest, and
Total interest paid

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. 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.
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 an example given to me from a facilitator to create an applet:

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

mport java.applet.*;
import java.awt.*;
/**
* The HelloWorld class implements an applet that
* simply displays "Hello World!".
*/
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 (ignore the periods, they're there to make the HTML code viewable):

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

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

Questions Cloud

Identify two domestic and military achievemen of napoleon : Identify two domestic and two diplomatic/military achievements of Napoleon. What was his greatest success? What was his worst blunder?
Factors that influence the behaviour of consumers : There are many individual factors that can influence the behaviour of consumers (needs, motivations, personality, consumer perception, learning, and involvement and consumer attitudes).
What is the effective annual yield on the bill : The Economist quotes 6.00% for the Treasury bill with a par value of $100,000 due two months from now. What is the effective annual yield on the bill?
Determine your net return on cumberland software : You purchased 1000 shares of stock in Cumberland Software for $3 per share on January 1, 2006. Over the next four years you received 7 cents per share annually in dividends. On December 31, 2009 you sell all your shares of Cumberland Software for $16..
The calculations were provided to you by a real estate agent : Your applet needs to extend the Applet (or JApplet) class. Of course, you need to import the appropriate applet package(s).
Primary and secondary research-event volunteering : Topic is Event Volunteering. You will need to conduct both primary and secondary research to address a problem or issue of investigation. You need to demonstrate reserach skill and formulate a well written, academically rigorous report.
Preferred stock is valued using capital asset pricing model : Which one of the following statements is correct? An increase in the market value of preferred stock will increase a firm's weighted average cost of capital. The cost of preferred stock is unaffected by the issuer's tax rate. Preferred stock is gener..
Prepare a balance sheet for alaskan orange corporation : Prepare a balance sheet for Alaskan Orange Corp. as of December 31, 2010, based on the following information:
Development of a national advertising campaign : How could a marketing manager for the following use the material in this chapter to guide the development of a national advertising campaign (choose one)? To assist local retailers or organizations in developing their promotional activities? Would..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Way to organize the flowers

Prepare a java program using given conditions- He wanted a way to organize the flowers that he picks for her each day and perform a few basic tasks with them, along with a few restrictions. It is our goal to help him out

  Promgraming 1 1 there are many different concepts

1. 1 there are many different concepts associated with oop object-oriented programming like class

  Implement the hashcode method

Java, every object has an equals and a hashCode method that is used, among other things, by the standard Collections library. By default both are based on an object's memory location

  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?

  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.

  Create application uses two-dimensional arrays

Create an application which uses 2-dimensional arrays to keep track of 5 students' grades, with each student having 3 different classes.

  Java program to compute invoice for client

You need a java program to compute the invoice for client and then print out invoice to the screen. The consulting rate is $200 per hour.

  Create two separate java codes resulting in the same output

I need to create two separate Java codes resulting in the same output (one using Apache Commons library and one using the standard Java methods). The program should count all people with the same last name and then change the last name to Doe.

  Write a program called drawing in the form of a public class

Write a program called Drawing in the form of a public class Drawing that extends a Java JFrame and provides the following features.

  Dijikstra for undirected graph using simple scheme

Dijikstra for undirected graph using simple scheme with array and fibonacci heap and compare the performance/results, preferably in java.

  Binary value and the hexadecimal value

Write a program that will read in a binary number (base 2) and a hexadecimal value (base 16). Your program then calculates and shows the equivalent decimal values for both the binary value and the hexadecimal value.

  Write a small java application to read the file

Write a small Java program that uses the information you gained in part (a) to read the data in the database and print it to an output text file called accounts.txt

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