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: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Need help with this assignment
Write a C++ program that keeps track of an array of Person objects and handles basic commands.
The Person object contains the following fields:
INSERTÂ - inserts a Person into the array based on user input, sorts the array by last name, and prints out all of the entries in the array. (Format: INSERT - LastName, FirstName)
Example:
Input - INSERT - Smith, John
Output
Doe, Jane
Smith, John
VIEWÂ - prints out the current array. (Format: VIEW)
Example:
Input - VIEW                              Â
Output
Doe, Jane
Smith, John
DELETEÂ - deletes a person from the array based on user input, sorts the array, and prints out all of the entries in the new array. (Format: DELETE - LastName, FirstName)
Example:
Input - DELETE - Smith, John   Â
Output
Doe, Jane
Utilize functions, loops, and pointers where applicable, and remember to include error handling to let the user know if something went wrong during your program.