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

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

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!