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, 22.06.2019 09:30
In which of the following would a person who works as a business administrator be interested? select all that apply. a. convincing someone to purchase a project b. planning employee work schedules c. typing memos and letters d. writing facts, procedures, and instructions e. working with clients as a fitness instructor unit 2 lesson 6 self-assessment unit test , me !
Answers: 1
question
English, 22.06.2019 11:30
Which is the best example of stream of consciousness writing? o a. 1. separate all the individual pieces of the cabinet. 2. using the wooden tabs, join all four l brackets until they form a square frame. 3. situate the frame vertically o b. i have to get out of bed, but it would if i had some reason, like a hot breakfast already waiting for me. come to think of it, cold cereal sounds pretty good right now. o c. while some have accused me of madness, i ask you, is it mad to want what is best for one's country? the welfare of the country is my sole motivation o d. sir bors halted at the edge of the cave and peered in. he hoped for some glimpse of his enemy to him gauge the monster's movements.
Answers: 1
question
English, 22.06.2019 14:10
What questions should be asked when evaluating a source? check all that apply. is there a lot of unnecessary information? how many pages is the source? how appropriate is the information? is the source sufficient? is the source reliable and accurate?
Answers: 2
question
English, 22.06.2019 15:10
Which elements are important to include in the conclusion of an argumentative editorial? check all that apply
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
Mathematics, 24.06.2019 07:30
question
Mathematics, 24.06.2019 07:30
Questions on the website: 13722360