Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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) 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. 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 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. cs. 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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions