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

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  The implementation of a password checker

demonstrate knowledge of both exhaustive search of a problem space and lookup search through the implementation of a password checker.

  Design the appropriate accessor and mutator methods

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.

  Pacman style game with clara

The major assignment involves producing a Pacman style game with Clara using the Greenfoot files that are given to you.

  Fixing errors in a java program

You coded the following on line ten of the class MyApplet.java:

  Create a netbeans java project

Create a NetBeans java project, add the jar file "stdlib-package.jar". The "Picture" class in this package can read and show digital image files.

  What position along the chord does minimum pressure occur

At what position along the chord does the minimum pressure occur? What is special about the point where C p is a maximum?

  Design an application to take and process a pizza order

Design an application to take and process a pizza order. The user should be able to make pizza order choices from list boxes, and the application should display the order price.

  Leadership position in a hospital emergency room

Identify in a leadership position in a hospital emergency room. Evaluate how  organization handles patient and employee education, and whether that organization participates in any research (if so, find out what types and whether it is mostly qualita..

  It inherits the functionality of super class

It inherits the functionality of super class Package and contains an additional data member representing an additional fee per ounce charged for overnight-delivery service.

  Class that stores information about a report

Create a class that stores information about a report containing multiple currency transactions in multiple currencies. This includes the name of the report and each of the transactions that occurred.

  Reverse the array, and find the largest element

find the max block of an array by splitting it into three parts: left, middle, right. And then reverse the array, and find the largest element.

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