The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write a C++ program 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().
For a driver program that will create an object, called myEmployeeList, 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.
Output is here ::::
List of type "Employee"
Enter number of employees: 3
Enter next name: Simon
Enter next phone number: 323-2200
Enter next name: Brain
Enter next phone number: 888-0000
Enter next name: Mark
Enter next phone number: 321-0000
Employee list sorted in ascending order:
Brain
Mark
Simon
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------sol-----------uti-----------on.-----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- ca-----------tch-----------