Answered step by step
Verified Expert Solution
Link Copied!

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
(Manager,Engineer) and the values are the number of each instance.

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

Big Data With Hadoop MapReduce A Classroom Approach

Authors: Rathinaraja Jeyaraj ,Ganeshkumar Pugalendhi ,Anand Paul

1st Edition

1774634848, 978-1774634844

More Books

Students also viewed these Databases questions