Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 BaileyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started