Add two more files to mortgage calculator program

Assignment Help Operating System
Reference no: EM13943567

Add two more files to Mortgage calculator program. Mortgage calendar Class and Mortgage array Class.

Total files to send back: Driver, Mortgage Calculator, Row, Mortgage calendar, Mortgage array.

Mortgage calendar Class: This should increment in day and month and year. Start with 15JUL04 as the first pay period then increment every 30 days so the next payment is 15AUG04.

Example that does not work:

Public MortgageCalendar()
{

Public string. Getdatestring(){
Date format formatter=getFormat.get date_instance()
String retString = formatter.format(current date)
Ret retString();
}
Calendar rightNow = Calendar.getInstance();

Public long getdatedifference(){
Date previousDate= this.currentDate;
advanceDate();
long diff = this.currentDate-this.previousDate;
long days=diff/1000*60460*24
return days();
}

Public void advance date();{
Int month=calendar.get(calendar.month);
MONTH++;
Now.set(calendar.month, month)
Current day=now.getTime();

get string to row and mortgagecalculator
}

Mortgage Array Class: Should display 3 mortgage loans: 7 years 5.35%, 15 years at 5.5% and 30 year at 5.75%. Use an array for the different loans. Display the mortgage payment amount for each loan. Do not use a graphical user interface. I am using NETBEANS compiler. Insert comments in the program to document the program.

Example that does not work

Public class MortgageArray{

Public int terms;
Public double rate;
Public double amount;
public toString()
}

Public Mortgage int interms, double inrate, double inAmount(){

Terms=interms
Rate=inrate;
Amount=inamount;
}

Public class driver{
Mortgage m1 = new Mortgage (7, .053, 200000)
Mortgage m2 = new Mortgage (15,.055, 200000)
Mortgage m3 = new Mortgage(30,.057,200000)

Mortgage []test=new mortgage[3]
Test[0] = m1;
Test[1] = m2;
Test[2] = m3;

For(i=0;i<test.length;i++){
Testcalculator
Setterm(test[i].terms)
Setrate(test[i].rate)
Setamount(test[i].amount)
Testcalculator.calculatemonthlypayment()
Format the string and print the string

OTHER INSTRUCTIONS:
Driver Class should include: Mcalc=getdatedifference

Reference no: EM13943567

Questions Cloud

What is the degree of operating leverage : What is the break-even point in bags? What is the degree of operating leverage at 19,000 bags and at 24,000 bags? Why does the degree of operating leverage change as the quantity sold increases?
What is the effective tax rate on the inter company : What is the effective tax rate on the inter company dividends, and how much net dividends are received?
Importance of leadership roles-corporate greening : The assignment is based on a discussion piece that highlights a number of points such as the importance of leadership roles relating to corporate greening in creating the sustainable future for the organisation. Students are expected to engage in ..
Whats the biggest threat in uae : Whats the biggest threat in UAE - it could relate on the countries economy or fighting terrorism
Add two more files to mortgage calculator program : Add two more files to Mortgage calculator program. Mortgage calendar Class and Mortgage array Class.
Describe two system variables in the ronald cotton case : Provide an analysis of the Ronald Cotton case, and include the following: Describe two system variables in the Ronald Cotton case. Explain the significance of each system variable as it relates to the case
Responsibility for quality management and customer service : Identify the issues within this case study and within the organisation system Pam claims no responsibility for quality management and customer service,
What is the permissible range for the modulation index : The maximum deviation in broadcast FM is 75 kHz. Suppose that a commercial FM system has modulating frequencies 40 Hz to 20 kHz. What is the permissible range for the modulation index?
What do the reports tell you about prison overcrowding : What do the reports tell you about prison overcrowding? Are there common themes or are they very diverse? What is the focus, state level, national level or something else? Write a two page report.

Reviews

Write a Review

Operating System Questions & Answers

  Scheduling.

A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at program start-up, when a single file must be opened.

  Explain the impact on the disks cache of several queries

Explain the impact on the disk's cache of several queries running concurrently, each scanning a different file. Can the above problem be addressed by the DBMS buffer manager doing its own prefetching? Explain.

  Write pseudocode for the citron car rental policy below

Standard transmission is available only for A, B, and C. Automatic transmission is available for all cars. If a customer reserves a subcompact

  Windows client server environment

Describe and critically evaluate the similarities between the Windows and Unix operating systems and Identify and Describe the processes involved in the Windows Client Server environment.

  Give four asymptotically different functions

Give four asymptotically different functions which are both in ?(1) and o(n).

  Determine a source code control system

Determine a source code control system and discuss why is such a system necessary when multiple programmers build a program or system?

  Define critical path and cpm

Define Critical Path and CPM. Define Networks & Network scheduling

  Automatic or traditional method to open a file

Some systems automatically open a document when it is referenced for the 1st time and close the file when the job terminates.

  Drawbacks and benefits of a peer to peer network

Describe to Champions the drawbacks and benefits of a peer-to-peer network. What can be shared between hosts?

  Compare and contrast guided versus wireless media

Imagine that you have been asked to prepare a paper that compares and contrasts guided vs. wireless media for inclusion in your corporation’s knowledge database.

  Declarations in global or in void functions or main function

These are the guidelines for flow on control in the program. each void function only called one time in program execution. Need help with correcting the code to run and the general code I working with is at the bottom.

  Question 1a enumerate the objectives of a procurement

question 1a enumerate the objectives of a procurement development modelb describe one procurement development model you

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