write a program that store names to an array and accepts names until “quit” is entered.

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY $18 ONLY

Q write a program that store names to an array and accepts names until “quit” is entered. The program includes a menu having these choices : getNames, sortNames, displayNames, findName, removeName. all of which are in there own funtions. and you can enter names like this “John Doe” at the keyboard but are converted to this “Doe, John” before being added to the storage list (array or vector). HINT: using str.find(substr, pos) function to find the ‘ ’ between the first name and last name entered; and then using str.substr(pos, num) function to extract the first name and last name; finally, concatenate the last name, ‘,’, and the first name to form the required string.

24 Mar 2016, 12:23 PM

Customer

Add another function that uses a stringstream to create and return a new string made up of only the last names in the list (pass the list to the function). Enclose each last name with double quotes. You will need to find where each last name ends in the string then extract just the last name. HINT: You will need the same functions mentioned in question 6 to find the ‘,’ at the end of each last name, and extract the last name