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

  Explain why network operating systems were phased out

Explain why network operating systems were phased out when distributed Operating systems gained popularity.

  Explain how to implement barriers using semaphores

Show how to implement barriers using semaphores. Your solution should avoid busy-waiting. Be explicit about any initializations that you need to assume.

  Find an arbitrary non-preemptive schedule of the tasks

Find an arbitrary non-preemptive schedule of the tasks. To make the problem simple, it is assume that the first instance of the three tasks {τ1, τ2, τ3} are invoked at time zero. Try to use integer linear programming framework to find the schedule..

  Assignment on single instruction multiple data instructions

Discuss what is meant by single-instruction multiple-data instructions. How are these instructions used?

  Several key parts required

Calculate the total price based on several key parts required to build a state-of-the-art gaming computer. The user will have the option of selecting different parts.

  Compute average memory access time

Compute Average Memory Access Time under a variety of memory system configurations and workload assumptions

  Advantages and disadvantages of major operating system

Consider the advantages and disadvantages of each major operating system that Amy might use on the Web server. In a one-page memorandum to Amy.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Power management settings in bios

Every day at 2PM a client's computer at work reboots itself. You have made sure the power management settings in the BIOS and in the Windows Control Panel are not responsible.

  Compare and contrast closed-source mobile operating systems

Compare and contrast open-source and closed-source mobile operating systems (OSs), and explain the main reasons why you would consider utilizing one (1) of these types of OSs over the other. Provide at least two (2) reasons to justify your decisio..

  Rize the operating system and application

clusters can be implemented by leveraging many operating systems and applications. in a report of 1-2 pages complete

  Operating system that supports a one-to-one relationship

Given an operating system that supports a one-to-one relationship between user-level threads and kernel-level threads and allows one or more threads from a process to issue blocking system calls while other threads (within that process) continue to r..

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