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 20:50
1. imaginary persons in a novel believable characters 2. characterization long prose narrative 3. real in the fictional world of the novel creation of characters 4. the novel world of fiction 5. world of the novel characters i need the answer
Answers: 1
question
English, 21.06.2019 21:10
My cat and my dog like best friends
Answers: 1
question
English, 22.06.2019 00:00
Write an argumentative paragraph answering does technology make us feel more alone?
Answers: 1
question
English, 22.06.2019 02:30
Read sentence 13 from the draft. some plants retain a great deal of their foliage through much of the spring and summer, but the leaves do not retain their green color for long. which detail would be best to add after sentence 13 to develop the topic? a. since the green color of the leaves that are bright and abundant during the warmer months will disappear by the time it is fall, it is important that the leaves are trimmed and kept freshly cut so that they will last for as long as possible. b. while the temperature outside may dictate when the fall colors of leaves appear, it is only one of many environmental factors that play a part in the changing of colors from green leaves to fall-colored leaves during the cooler months. c. if people want to enjoy the green color of leaves longer, trees should be planted where the environment is warmer and the days longer because chlorophyll in the leaves can only be manufactured and replaced with sunlight and warmth. d. the green chlorophyll normally masks the fall-colored pigments during the warmer months, but as sunlight becomes less abundant and trees become frozen, the fall colors of leaves become more visible as chlorophyll disappears.
Answers: 3
You know the right answer?
Write a c++ program '
Consider that a system has two entities, Employee and Department. The emp...
Questions
question
Mathematics, 11.11.2019 06:31
question
Computers and Technology, 11.11.2019 06:31
Questions on the website: 13722360