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 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
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
question
Engineering, 04.07.2019 18:10
A-mn has a cubic structure with a0 0.8931 nm and a density of 7.47 g/cm3. b-mn has a different cubic structure, with a0 0.6326 nm and a density of 7.26 g/cm3. the atomic weight of manganese is 54.938 g/mol and the atomic radius is 0.112 nm. determine the percent volume change that would occur if a-mn transforms to b-mn.
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
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
Computers and Technology, 20.01.2021 04:10
question
Mathematics, 20.01.2021 04:10
question
English, 20.01.2021 04:10
question
Mathematics, 20.01.2021 04:10
question
History, 20.01.2021 04:10
question
Mathematics, 20.01.2021 04:10
Questions on the website: 13722360