Question: c++ Name Formatting: Write a function with the following prototype that returns a name in proper order: Flintstone, Fred W. string lastNameFirst( string userName)): 1.

c++
Name Formatting: Write a function with the following prototype that returns a name in proper order: Flintstone, Fred W. string lastNameFirst( string userName)): 1. Instantiate a string array with three elements named userName in the main 2. Populate the string array with user information 3. Send the string array to the function which will return a string in proper format as shown above 4. Output the result in the main. You may/should use function composition. That is. you can use the function created in the previous assignment within this function to ensure that the user name is properly capitalized. We will reuse this function later in the course. First name: anna rose Middle name: bailey Last name: smith Your name is: Smith, Anna Rose Bailey
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
