Write a program that store names to an array and accepts


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.

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.

Solution Preview :

Prepared by a verified Expert
Database Management System: Write a program that store names to an array and accepts
Reference No:- TGS01365005

Now Priced at $40 (50% Discount)

Recommended (93%)

Rated (4.5/5)