subject
Engineering, 22.05.2020 22:57 abbypark0804

Consider that a system has two entities, Employee and Department. The employee has the following properties: employee name, number, SSN and salary. Similarly, the department has the following properties: department name, department number and a set of employees who are working on that department.
Implement the above system taking into account the following requirements:
1. In department, the number of employees that are working on this department is decided at the time when instantiating the department.
2. Assume that emp1 and emp2 are two objects of type Employee, write a code that enables you to write: if (emp1.isequal (emp2)). Where emp1, emp2 are employee objects. The statement is true if the objects have the same salary.
3. In department, make sure no two employees have the same employee number.
4. In department, write a method to increase the salary of an employee by a specific value. it should validate that value.
5. Write a getEmpByEno method in class department that returns a pointer to one of the employees in that department using the Employee number.
6. Write a getEmpByName method in class department that returns a list of employees in that department who have the same name.
7. Write a method to find the maximum salary in the department.
8. Write a code that enables you to write: if (equal (dept1, dept2)). Where dept1 & dept2 are departments object. The statement is true if the two departments have the same sum of employee salaries.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
question
Engineering, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
You know the right answer?
Consider that a system has two entities, Employee and Department. The employee has the following pro...
Questions
question
Mathematics, 01.04.2021 17:40
question
Mathematics, 01.04.2021 17:40
question
Mathematics, 01.04.2021 17:40
question
Mathematics, 01.04.2021 17:40
Questions on the website: 13722363