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, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
Answers: 2
question
Engineering, 04.07.2019 18:20
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i.e., a violation of one statement leads to the violatio the other statement)
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
Mathematics, 23.05.2020 11:59
Questions on the website: 13722362