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 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
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.01.2022 19:00
question
Mathematics, 28.01.2022 19:00
question
Mathematics, 28.01.2022 19:00
question
Physics, 28.01.2022 19:00
Questions on the website: 13722360