Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Operating System Expert

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;iTestcalculator
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

Operating System, Computer Science

  • Category:- Operating System
  • Reference No.:- M91614433
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Operating System

Question state the required answer precisely and then

Question : State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. What is the purpose of the command interpreter? Why is it usually separate fr ...

Question students working at individual pcs in a computer

Question : Students working at individual PC's in a computer laboratory send their files to be printed by a server that spools the files on its hard disk. Under what conditions may a deadlock occur if the disk space for ...

Research types of operating systems that are currently

Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Explain why you think the choice you made ...

Catalog course descriptionin this course students carry out

Catalog Course Description In this course students carry out independent research in a significant technical area of information, network, and computer security. The student is to investigate a technical area, research i ...

Question research hex editors available for mac os and

Question : Research hex editors available for Mac OS and Linux. Based on the documentation, how easy would validating these tools be? Select at least two hex editors for each OS, and discuss what you would do to validate ...

Show all stepssuppose that the following processes arrive

Show all steps Suppose that the following processes arrive for execution at the times indicated. Each process will run the listed amount of time. in answering the questions, use non-preemptive scheduling and base all dec ...

Question description of lasa in this assignment you will

Question: Description of LASA: In this assignment, you will select a real-world operating system (can be for a PC, server, tablet, handheld, or embedded device). You will introduce the operating system and its components ...

Assignment -building a multi-threaded web server using c

Assignment - Building a multi-threaded web server using C and p threads, following the model from the lecture. Your program will have one thread acting as a dispatcher thread, listening fornetwork connections with reques ...

Question topic computerized operating systems os are almost

Question: Topic: Computerized Operating Systems (OS) are almost everywhere. We encounter them when we use out laptop or desktop computer. We use them when we use our phone or tablet. Find articles that describes the diff ...

Question you are a security administrator responsible for

Question: You are a security administrator responsible for providing secure configuration requirements for new laptop deployments. After reading Module 2 of Certified Secure Computer User v2exercises, apply the configura ...

  • 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