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:30
Assp - why is it important to participate in a global economy? write a paragraph of 2 to 3 sentences that explains your answer?
Answers: 1
question
English, 21.06.2019 21:00
Which statement from "letter to his father" is similar to gregor's inability tocommunicate with his father as a bug in the metamorphosis?
Answers: 2
question
English, 21.06.2019 23:00
As you have learned, epic heroes experience trials along their journeys. using your knowledge from beowulf, create a trial you believe an epic hero like beowulf might face. you will need to write a description of the trial using the aspects of a narrative. the trial can be anything you imagine, meaning you can test the hero in any way you see fit. be creative and have fun with this! let your creativity flow. focus on key attributes of beowulf and use his attributes to create a trial that would truly test him. since beowulf is very strong, a trial involving strength and endurance might be to easy. try thinking outside the box to create a trial that would truly test the hero of the geats. examples of beowulf’s attributes: couragous, loyal, strong, persistant, honorable, confident try to use one or multiples of these attribute when designing your trial. a good way to think of this activity is that you are a hunger games game designer. what could you make that would stump beowulf
Answers: 1
question
English, 21.06.2019 23:30
Plz (i only understand "the song of wandering aengus." and i have no idea what the raven means so i can't answer this. me i will give brainlest and a 5-star rating) consider the speakers in "the raven" and the speaker in "the song of wandering aengus." write two paragraphs to compare and contrast the voice in these two poems. how does the poet give the speaker in each poem a distinctive voice? what effect does this voice have in each poem? use examples from each poem to as evidence for your answer
Answers: 2
You know the right answer?
Write a c++ program '
Consider that a system has two entities, Employee and Department. The emp...
Questions
question
Mathematics, 05.09.2019 07:10
question
Mathematics, 05.09.2019 07:10
Questions on the website: 13722367