subject
English, 21.05.2020 23:59 hannahgracew12

Write a c++ program '
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:

In department, the number of employees that are working on this department is decided at the time when instantiating the department.

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.

In department, make sure no two employees have the same employee number.

In department, write a method to increase the salary of an employee by a specific value. it should validate that value.

Write a getEmpByEno method in class department that returns a pointer to one of the employees in that department using the Employee number.

Write a getEmpByName method in class department that returns a list of employees in that department who have the same name.

Write a method to find the maximum salary in the department.

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.

c++ program

ansver
Answers: 3

Another question on English

question
English, 21.06.2019 21:00
The description of the house in this excerpt gives an example of
Answers: 2
question
English, 22.06.2019 00:00
How can you paraphrase this, this is about golden age fallacies.these are all rational people who know that older is not necessarily better, but many are taken in by this fallacy and seem no longer able to reason with any degree of reliability
Answers: 1
question
English, 22.06.2019 00:30
Why does the host answer the guest with brief responses during the party?
Answers: 1
question
English, 22.06.2019 01:50
To meet the needs of commuters in the industrial age, city planners implemented the use of phonographs. provided more horses and carriages. borrowed technology from railroads. constructed new telephone lines.
Answers: 1
You know the right answer?
Write a c++ program '
Consider that a system has two entities, Employee and Department. The emp...
Questions
question
Biology, 28.01.2020 04:31
question
World Languages, 28.01.2020 04:31
question
English, 28.01.2020 04:31
Questions on the website: 13722361