create program on eclips java

profileGhost90
scan1.pdf

COSC 210 - Fundamentals of Computer Science Assignment 6 Problem Statement

Produce a department report from an employee file (Emps.dat) and a department file (Depts.txt). Both files are on the tomcat drive under cosc210 and uploaded to Moodle.

Input: Employee file - binary with the following fields:

Employee ill-4 bytes two's compliment integer First Name - 10 bytes ASCII blank padded Last Name - 15 bytes ASCII blank padded Department Code - 2 bytes ASCII Hire Date - 1 byte 2's camp for month, 1 byte 2's camp for day, 2 byte 2's camp for year Employee Type -1 byte ASCII'S' for Salaried, 'E' for Exempt, 'H' for Part Time Hourly Salary - double precision floating point Hourly Rate - double precision floating point Vacation Days - 2 bytes 2's comp integer Training - 1 byte binary

Department file - comma delimited text. Each line in the file represents a department. The comma delimited fields are:

Department Code Department Name Employee illof the manager for the department

Output: Print a report listing of Employees by Department. For each department, print the department name, manager's name, number of employees in the department, and the sum of the vacation days of its employees. For each employee, print the employee ID, name, hire date, salary, exempt status, and vacation days. A sample report is provided below:

Administration Department

Manager: Herbert Johnston Staff Size: 36 Vacation Days: 40

10 Employee Name Hire Date Typ Salary Rate Vac 10640 Nick Stover 05/13/2004 S 30,000.00 15.00 30 10688 John Cochran 09/15/2004 H 13.75 22 10923 Brian Dunlap 01/09/2000 E 105,000.00 4

Engineering Department

Manager: Joseph Johnston Staff Size: 41 Vacation Days: 40

ID Employee Name Hire Date Typ Salary Rate Vac 10646 virginia Clawson 01/25/2004 H 16.25 24 10666 Beverly Noel 05/11/2002 S 37,500.00 18.75 18