Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions