subject
Engineering, 24.05.2020 09:59 bella2331

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: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
question
Engineering, 04.07.2019 19:10
How to increase the thermal officiency of an ideal simple rankino cycle? among these methods, which one is the best and why?
Answers: 2
question
Engineering, 04.07.2019 19:20
The power source in a certain welding setup generates 3500w that is transferred to the low carbon steel work with a heat transfer factor of 0.85. the melting factor in the operation is 0.45. a continuous fillet weld is to be made with a cross-sectional area of 23 mm2 determine the travel speed at which the welding can be accomplished.
Answers: 3
You know the right answer?
Consider that a system has two entities, Employee and Department. The employee has the following pro...
Questions
question
English, 28.10.2020 05:50
question
Mathematics, 28.10.2020 05:50
question
History, 28.10.2020 05:50
question
Mathematics, 28.10.2020 05:50
Questions on the website: 13722362