Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

5. Describe the visual representations, or models, of communication

Answered: 1 week ago