Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The goal of this project is to create and manipulate an indexed list of employees. The class employee has two data members: the name

image text in transcribed 

The goal of this project is to create and manipulate an indexed list of employees. The class employee has two data members: the name and phone number of an employee, and four member functions: setName(), displayName(), setPhone() and displayPhone(). The template class indexList is posted on UR Courses (see lecture notes). In the class indexList, include only the member functions that you need for this project. Write a driver program that will create an object, called my EmployeeList, which is an indexed list of N employees. The driver will also sort the employee list using the selection sort algorithm and display the sorted list. The selection sorting algorithm should be implemented in the template class indexList. A sample run follows. List of type "Employee" Enter number of employees: 3 Enter next name: Sam Enter next phone number: 555-0000 Enter next name: Brenda Enter next phone number: 888-0000 Enter next name: Matt Enter next phone number: 333-0000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres the code for the project include include class Employee public void setNameconst stdstring name thisname name stdstring getName const return nam... 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

Java How To Program Late Objects Version

Authors: Paul Deitel, Deitel & Associates

8th Edition

0136123716, 9780136123712

Students also viewed these Programming questions