Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the information system for a company. You can add a new employee to a project by specifying the project id , type of instance
Consider the information system for a company.
You can add a new employee to a project by specifying the project id type of instance and
detail bonus or yearsInService depending on the type and pressing Add button. The
employee is added in to the appropriate project based on the id and also to the company
collection of employees.
Implement a thread called EmployeeMonitor that continuously scans Company for new
employee. When it detects that a new Employee was added, it will add it in the employee.txt file
accordingly. The file will store the employees in the following format:
where detail is bonus or years in service
Also implement a class MapUtility with a static method called toMap that receives a Company
object and returns a Map in which the keys are the name of the instances of employees
ManagerEngineer and the values are the number of each instance.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started