Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HR Department Employee Management System You are tasked with developing a program for an HR department to manage their employee records. The program will read

HR Department Employee Management System
You are tasked with developing a program for an HR department to manage their employee
records. The program will read employee information from a flat text file, sort the
employees by their employment type and other criteria, and generate a report.
The first line contains the number of employees listed in the file.
The fields below repeat for each employee record:
Employee ID (numeric)
Name (String)
Department (String)
Date of Hire (LocalDate or Date)
Employment Type (Enum)
Salary (numeric)
1) Implement EmploymentType Enum:
Define a Enum EmploymentType with possible types matching an input file. An employee can be hired full-
time, part-time, or can be a contractor or an intern.
2) Implement Employee Record:
Define a record Employee with fields for ID, name, department, date of hire, employment type, and salary.
Include a toString() method to represent the employee record as a string.
Hint: your Employees should be Comparable
3) Implement HRTest Class, which has the following:
Create an array (or an ArrayList) to store Employee records.
Implement a method to read the input file employees.csv and store data in the array/list (and test it).
Update a single record in the input file to your personal information with your actual Kean ID, first name
and last name.
Implement a method to sort the array/list by employment type and other criteria as needed (and test it).
Implement a method to format and print the report with headers and page breaks (and test it). Insert a
page break every 40 employees.
The main method should orchestrate reading the file, sorting the employees, and printing the report.
Testing: Ensure the program works with the provided employees.csv file without errors.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions

Question

=+(3.14) Q((HOA) U (HenB)) = P(HOA) +P (H'nB) for A, B E 70.

Answered: 1 week ago