Question: Using classes, design an Employee Directory. Each entry into the directory must be able to store the following information: Full Name Address Pay Rate (

Using classes, design an Employee Directory.Each entry into the directory must be able to store the following information:
Full Name
Address
Pay Rate (hourly)
Phone Number
To do so, you are going to create two classes. The first class, called Employee, will store information for 1 employee. This class should have attributes that can store information for the data mentioned above, as well as a means of accessing/modifying attribute data (i.e., getters and setters).
Next, you are going to create another class called EmployeeDirectory, which will store a collection of Employee objects via an array or vector(your choice).This class should support the following operations:
Add a New Employee
Search the Directory by Name (return the Employeeobject back to where its called).
Display All Employees(Only display their names).
Once you are finished designing the class, create an EmployeeDirectory object and add the following people to the directory:
Sarah Paulson
Tom Holland
Emma Watson
Leonardo DiCaprio
Maggie Smith
Note that you may be creative with the rest of the information(address, pay rate, phone number). Call the appropriate operator to output the Employee Directory.
Compress your solution to a ZIP folder and upload it as your answer to your question.Be sure to include a header comment above each file your create stating your name and description of the contents of the file(like you do in the programming assignments).

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 Programming Questions!