Question: This is C++ language. The file includes these names: lastname Taylor marie denise james wilis surname thomas Stone Rock lastname Brown surname lea high lee

This is C++ language. 

This is C++ language. The file includes these names: lastname Taylor marie

The file includes these names:

lastname Taylor marie denise james wilis surname thomas Stone Rock lastname Brown surname lea high lee stephens jabcobs lastname reynolds lastname russell mack hussell surname Lewis Michelle Tee john mark surname marshall lastname Moto ah sey o e lastname vey Twosee ore surname knocktosee surname finitee two N lastname ghigher Eve N T tow surname jammer Uh nuther lastname one surname Lotts lue Knew Ah C lastname moto lastname phinshed Just about Thee last surname won 

CS 317 Program Assignment Name Arrange You are to write a program that will read in each person's name and print out the results. The list has been collected form different places and the names are not in some standard format. A person's last name may appear last or it may appear first. A label has been associated with each name to identify where the last name appears. Either "surname" or "lastname" appears just before a person's last name. The other will be his first name followed by optionally middle initial or name. Capitalize the first letters of each part of a name. Examples of inputs are given below. Read in the names, and arrange them with the last name first, followed by a comma, followed by Input file: namesLast.txt Example input the first name and his middle name or initialsticexist tom archer lastname jones lastname luewey Huewey dewy See More surname Or-less Example output (Sorted): Jones, Tom Archer Luewey, Huewey Dewy Or-less, See More

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!