Question: Define a class EmployeeList that has the following data members: . An array that holds a list of employee objects. an integer that stores the

 Define a class EmployeeList that has the following data members: .

Define a class EmployeeList that has the following data members: . An array that holds a list of employee objects. an integer that stores the number of employee objects in the list. e a default constructor. . a member function that adds an employee object to the list. The function should have the The class should have the following member functions and operations: employee object as a parameter and bool as the return type. It should check if the list has more space to hold an additional employee. The function should also forbidden a same object to be added to the database. If the function can add additional employee, it returns true; otherwise it returns false. member function that deletes an employee data from the list. The function should have an employee object as a parameter and bool as a return type. It should check if the list is empty. If so, the fumtion returns false. Otherwise it checks to see this employee is in the list ( using operators.= & != on Employee objects). If not, it returns false again. Otherwise the function deletes this employee and return true. a member function that searches for an employee in the list according to the id as a parameter and returns the index of the employee if it is in the list Othenwise it returns a negative value to indicate the employee is not in the list provided , , a member function that modifies an employee s data according to the location (index) sn the list. The function should have the index as a parameter It should ask the user which data member to be modified For example, the output of this function might look like

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!