Consider a program that will read employee data sort the dat

Consider a program that will read employee data, sort the data by employee identification number, write out the sorted data, and compute various statistics about the data, such as the average age of an employee. Design a modular solution to this problem using CRCs and UML notation. What classes and methods did you identify during the design of your solution? Write complete specifications, including preconditions and postconditions, for each module. Additionally, write the class and function descriptors (without actually implementing the functions) along with comments for documentation. You may use any editor to produce UMLs. There are online sources as well (crcatelv.com/Draw-UML-and-Class-Diagrams-Online). Requirements: CRC and UML for design, source code.

Solution

public class EmployeeDemo { /** * @param args the command line arguments */ public static void main(String[] args) { // create employee objects Employee emp1 = new Employee(\"Susan Meyers\", 47899, \"Accounting\", \"Vice President\"); Employee emp2 = new Employee(\"Mark Jones\", 39119, \"IT\", \"Programmer\"); Employee emp3 = new Employee(\"Joy Rodgers\", 81774, \"Manufacturing\", \"Engineer\"); // store employees Employee[] Emps = new Employee[3]; Emps[0] = emp1; Emps[1] = emp2; Emps[2] = emp3; // display employee records for(int i = 0; i < 3; i++) { System.out.println(Emps[i].getName()); System.out.println(Emps[i].getIdNumber()); System.out.println(Emps[i].getDeptartment()); System.out.println(Emps[i].getPosistion()); System.out.println(); } } }
 Consider a program that will read employee data, sort the data by employee identification number, write out the sorted data, and compute various statistics abo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site