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

  Demonstrate knowledge of design patterns

Your software should make use of the concepts outlined at the start of the assignment brief above. Think about where you can employ appropriate design patterns and other techniques.

  Java program simulate a network

Java program simulate a network

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

  Define get and set functions and two constructors

Create a class called Building. It will have one data member of type string (used for a postal address). Define get and set functions and two constructors.

  Construct a bulls and cows program for my intro java class

construct a Bulls and Cows program for my intro Java class. This program needs to perform the basic functions of the game (determining how many cows there are and how many bulls there are and tell the player when they win), but it also needs to offer..

  Prepare a program to implement array

Write a method, insertAt, that takes four parameters: an array of integers; the length of the array; an integer, say insertItem; and an interger, say, index.

  Calculate state income tax for a single taxpayer

The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI

  Create a book class for the library application project

Create a Book class for the Library application project. In addition to properties of author and isbn, with setters/getters, the Book should override Object's base method "boolean equals(Object)" and have a "boolean validate()" method.

  Computes and prints the total cost of the three items

A program is required which prompts the user to enter the individual price of three different items and computes and prints the total cost of the three items as well as the average cost. Remember to add sales tax (5% or 0.05) to the total cost.

  What command is used to create a java archive

What command is used to create a Java archive? Describe using an example.

  Shooting star

Initial project folder you will see the beginnings of a Driver - You need to implement that DoubleListOfBlock methods so they perform

  How to print out the matrices.

How to call the input matrice files and implement them in the functions. Or to convert the txt file into a matrice?

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