Question: This lab will help you practice with function design, strings (i.e. variables/objects of the string class), and loops. (There are also options about using vectors...)

This lab will help you practice with function design, strings (i.e. variables/objects of the string class), and loops. (There are also options about using vectors...) Write a program that reads a person's name in an informal notation/order (i.e. 'First Middle Last 'or 'First M. Last') and then outputs their name in a more formal notation/order: 'Last, First M.'. As an example, you might have the program interaction look something like (the parts in this color are typed by the user): $ ame_formal.out Welcome to the Name Formalizing Program!!! Enter your name: Mary Average User Your formal name would be: User, Mary A. Thanks for Formalizing with us today! Have a pompous day! $ ame_formal.out Welcome to the Name Formalizing Program!!! Enter your name: Mary A. User Your formal name would be: User, Mary A. Thanks for Formalizing with us today! Have a pompous day! $ ame_formal.out Welcome to the Name Formalizing Program!!! Enter your name: Mary User Your formal name would be: User, Mary Thanks for Formalizing with us today! Have a pompous day! $ ame_formal.out

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!