Calculator that calculates and displays when executed in net

Assignment Help JAVA Programming
Reference no: EM13942184

Please help in building a non GUI mortgage calculator that calculates and displays when executed in NETBEAN compiler: Principal = $200,000 Interest Rate = 0.0575 Periods = 360 Monthly Payment = Then scrolls and displays Payment # Principle Monthly Payment Pay Date (15JUL05) Interest Payment Interest Paid Principle Paid Attached is Driver.java, Mortgagecalculator.java., and Row.java. Everything must compile to execute off of Driver.java.

Please generate a file called row.java (container or wrapper) class to include these variables:
1. public Principle
2. public Monthly Payment
3. public Pay Date
4. public Interim Balance
5. public Interest Paid
6. public Principle Paid
7. to string

Couple of items to fix please:

1. Numbers should go to 2 decimal spaces.
2. Examples written by the teacher on a white board (very confusing, what she threw up on the board) wanted in the mortgagecalculator class:

Mortgagecalculator.java class must have:
1. Vector
2. Private Static number of months
3. Private Static number of days
4. Public void derive matrix
5. Public void print matrix

Also include:

double calculate interest balance double currency principle
double daily rate = interest rate/calculator, number of days
int days = get days between payment ();
double exponent = daily rate * days;
double base = Math.pow (e, exponent);
double interim balance = current principle;

double interest paid = interim balance - previous interim balance
return interest paid;

double calculate principle paid (double interest paid)
double principle paid = monthly payment - interest paid
return principle paid;

double calculate new principle (double principle paid, double previous principle)
double new principle = previous principle-principle paid
return new principle

rows = new vector();
first row.principle = loan amount;
monthly payment = calculatemonthlypayment()
first row.payment=monthly payment;
first row.paydate="07/04/2004"
first row.interim balance = loan amount;
first row.interest paid = calculator.initilize zero
first row.principle paid=calculator.inintilize zero;
rows.add (first row);

for (int i =1; i<number of payments; i++)

row current row = new row();
previous row = rows.element (i-1);
current row.payment=monthly payment;
current row.date="07/04/2004"
current row.interim balance = calculate interim balance;
current row.interest paid = calculate interest paid (current row interim balance, previous row interim balance)
current row.principle paid = calculate principle paid (current row.principle paid, previous row.principle)
row.add(current row)

public void print matrix ()

int length = rows.size();
for (int i = 0, i<length, i++)
string display value = new string ()
row print row = (row) rows.element (i);
display value = print row to string();
system.out.println(display value);

Variable in Row Class:
Principle
Monthly Payment
Paydate
Interim Balance
Interest Paid
Principle Paid
to string ()

Mortgage calculator class (class diagram

STATIC
calculate initilize zero
number of months
number of days
e= 2.7182818284594

Public void derive matrix ();
Public void print matrix ();
Private double calculate principle (double)principle paid, double previous principle
Private double calculate Interim Balance (double) calculate principle
Private double calculate Interest Payment (double) interim balance, double previous balance
Private double calculate principle paid (double) interest paid, principle paid
Private int get days between payments;
Public int get date differences();
return 30;

Reference no: EM13942184

Questions Cloud

Identify the causes of sexual offending : While a great deal of research has been conducted attempting to identify the causes of sexual offending, a general consensus has not been reached. Instead a mix of social, environmental, psychological, and biological factors have been found to con..
Determine temperature of a flat piece of the coated aluminum : Determine the equilibrium temperature of a flat piece of the coated aluminum that is exposed to solar irradiation, GS = 1368 W/m2 on its upper surface. The opposite surface is insulated.
Problem regarding the strategy recommendation : Identifies the specific business (for example, Barnes and Noble, Mike's Plumbing) that you will use for your strategy recommendation.
The level of independent choice : Provide an example of a choice in which YOU might exercise moral agency merely at the level of independent choice.Provide an example of a choice in which YOU might exercise moral agency merely at the level of competent choice.
Calculator that calculates and displays when executed in net : Please help in building a non GUI mortgage calculator that calculates and displays when executed in NETBEAN compiler: Principal = $200,000 Interest Rate = 0.0575 Periods = 360 Monthly Payment = Then scrolls and displays Payment # Principle
Making strategic decisions for the businesses : It is apparent that modern companies relied on dependable sources of information and knowledge in making strategic decisions for their businesses.
Meaning of the computed net present value figure : A firm wishes to bid on a contract that is expected to yield the following after-tax net cash flows at the end of the year.YEARNET CASH FLOW
How do you maintain the balance among web resources : How do you maintain the balance between writing your own thoughts and quoting or paraphrasing from your sources? What percentage of your paper is original?
Derive differential equation for predicting capsule : Derive a differential equation for predicting the capsule temperature as a function of time. Solve this equation to obtain the temperature as a function of time in terms of capsule parameters and its initial temperature Ti.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  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 a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  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.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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