question1 date consists of a month day and year


Question

1. Date consists of a month, day, and year. Frequently, we represent each of these items as integers. Such as, July 4, 1990, is a month 7, day 4, and year 1990.

a. write down specifications for a method that advances any given date by one day. Include a statement of purpose, pre- and post-conditions, and a description of the parameters.

b. write down a Java implementation of this method. Propose and specify any other methods that you need. Include comments that will be helpful to someone who will maintain your implementation in the future.

2. Consider a program that will read employee information into an array of objects, sort the array by employee identification number, write out sorted array, and compute various statistics on the data, such as the average age of an employee. Write complete specifications for this problem and design a modular solution. What classes and methods did you identify during designing of your solution? Write down specifications, including preconditions and post-conditions, for each method.

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: question1 date consists of a month day and year
Reference No:- TGS0444475

Expected delivery within 24 Hours