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

  Implementation of tru file system

Design and implement TFS. It is a file system that can be used on a standalone machine. There are several simplifying assumptions such as a single application is accessing the file system at any given time.

  Explain the legal doctrine benefits balancing

Explain the legal doctrine "Benefits Balancing" as it pertains to applying the reasonable standard of care doctrine in the medical fields. Does a defense that the majority of physicians normally do not give a particular diagnostic test in the normal ..

  It should have an if statement

The following are hints given: It should have an if statement. This add method determines what number greater than or less than the other number, than it adds the positive or negative. I think this should be a private method.

  Programming sorting algorithms

Describe an approach to modifying the Sorts.java program so that after calling a sorting method the program prints out the number of swaps needed by the sorting method.

  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.

  Create a java class named headphones

1. Create a Java class named HeadPhones to represent a headphone set. The class contains:

  Qr codes are a popular way

QR codes are a popular way to encode data for easy reading by computerized cameras. True QR codes contain error correction, format specifiers, version information, and a size variable layout that makes them harder to decode and process

  Chat monitoring system

The name of the project is chat monitoring system. in the file you will see the screenshot diagram 2A are my design, You need to upgrade, to look professional like the diagram 2B. Java, netbeans and GUI.

  Write a recursive boolean method named ismember in java

Write a recursive boolean method named isMember in Java. The method should accept three arguments: an array, a value to search for, and the size of the part of the array being searched.

  Write java program to store values retrieved from user-array

Write a Java program named Arrays6_2GF.java Use an array to store values retrieved from user input. The number of integers to be entered (the length of the array )should also be retrieved through user input.

  Requirementspig is a folk jeopardy dice game with simple

requirementspig is a folk jeopardy dice game with simple rules two players race to reach 100 points. each turn a player

  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.

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