Consider a program that will read employee information


1.A date consists of a month, day, and year. Frequently, we represent each of these items as integers. For example, July 4, 1990, is a month 7, day 4, and year 1990.
a.Write 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 a Java implementation of this method. Design 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 the 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 the design of your solution? Write specifications, including preconditions and post-conditions, for each method.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Consider a program that will read employee information
Reference No:- TGS090243

Expected delivery within 24 Hours