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 android app which will sense the room temperature

Write an Android app which will sense the room temperature. Write the Cell identity Gsm and Carrier Configuration Manager Class code.

  Difference between the two following statements

What exactly is the difference between the two following statements and which is preferred, please provide details: 1) frame.setSize(400, 300); // Set JFrame Size

  Requests the user to enter a value

Requests the user to enter a value, and searches the array to find a matching value. If there is a match, display Match; otherwise, display No Match.Display only one message at the end of the search.Write the code so the search stops when a match is ..

  The array at the index method

have an array, how do i remove an entry from the array at the index method?

  Describe the applications functionality

Create an application for Koch's Cottages, a weekend getaway resort that rents cottages and boats to use on the local lake - Add labels as suitable to describe the application's functionality. Save the file as JCottageFrame.java.

  Write a java program that declares an array alpha

Write a java program that declares an array alpha to 50 elements of type double. Initialize the array so that the first 25 numbers are equal to the square of the index variable, and the last 25 elements are equal to 3 times the index variable. Output..

  Designing an inheritance between classes

Why is an "is-a" relationship important when designing an inheritance between classes

  Write an application to simulate user logon tracking

Keep track of the number of users logged on at any point in time, and display this number in a text box that the user cannot modify. Display appropriate messages when a user successfully logs on or off and appropriate error messages when an action..

  Calculate the total hours of over lapping meetings

Suppose you have a meeting room which can hold multiple meetings and the smalled duration of meeting can be 30 mins. Calculate the total hours of over lapping meetings.

  What command is used to create a java archive

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

  Write an application that uses an array

Write an application that uses an Array to store 10 messages of type String. You can load this data structure with 10 messages of your choosing.

  Write a program that creates two string arrays

Write a program that creates two String arrays, one to store names of 5 boys and another to store names of 5 girls

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