The Department Report System facilitates the extraction of departmental data from CSV files, including details about departments, employees, and their salaries. It employs HashMaps to streamline data management and optimize performance.
- deptCode: String
- deptName: String
- depTotalSalary: Double
- empNo: String
- lastName: String
- lastName: String
- salary: Double
You need to create objects that will handle the retrieval of the csv files to convert it into objects. These are EmployeeDA and EmployeeDA objects.
- You are not allowed to alter the composition of the domain objects. Stick to the design. Disregard the data in the csv if it is not necessary to the object.
- Adhere to correct naming conventions in naming variables and objects.
- Use hashmap as your solution to the problem.
- Use the department.setDepTotalSalary() in putting the aggregated value into the object. Do not just use the salary accumulation approach in the printing process to get the depTotalSalary.