Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

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, istring 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;

Java, Programming

  • Category:- Java
  • Reference No.:- M91613052
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Assessment instructionsin this assessment you will design

Assessment Instructions In this assessment, you will design and code a simple Java application that defines a class, instantiate the class into a number of objects, and prints out the attributes of these objects in a spe ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Assignment - method in our madnessthe emphasis for this

Assignment - "Method in our Madness" The emphasis for this assignment is methods with parameters. In preparation for this assignment, create a folder called Assign_3 for the DrJava projects for the assignment. A Cityscap ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As