Paper Writing Services a new string made up of only the last names in the list (pass the list to the function). Enclose each last

Abstract
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

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 wch are in there own funtions. and you can enter names like ts “John Doe” at the keyboard but are converted to ts “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

Sample references
  • (‘Kunreuther, H. 2008. Reducing Losses from Catastrophic Risks Through Long-Term Insurance and Mitigation. Philadelphia: Risk Management and Decision Processes Center, The Wharton School, University of Pennsylvania.’,)
  • (‘Gregory, J. M., P. Huybrecht, and S. Raper. 2004. Threatened loss of the Greenland ice sheet. Nature 428:616.’,)
  • (‘Washington, DC: National Academy Press.’,)
  • (‘Gu, L., D. D. Baldocchi, S. C. Wofsy, J. W. Munger, J. J. Michalsky, S. P. Urbanski, and T. A. Boden. 2003. Response of a deciduous forest to the Mount Pinatubo eruption: Enhanced photosynthesis. Science 299(5615):2035-2038.’,)

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer