Question: Write a C++ program that asks the user to enter in three names as strings and displays the names in alphabetical order. If the three

Write a C++ program that asks the user to enter in three names as strings and displays the names in alphabetical order.

If the three numbers are all the same the program should tell the user that all the names are equal and exit the program.

Be sure to think about all the possible cases of three strings.

Be sure to test all possible paths.

Allow user to input three names

Properly display either the displays the names in alphabetical order or the message that all the names are equal

Include comments in your code as required

Please enter in a name ...... A

Please enter in a name ...... B

Please enter in a name ...... C

A

B

C

Valid input validation response on each question asked

Properly nested conditionals

Properly test for valid user input

Display appropriate messages

Include comments in your code as required

Only use Iostream and iomanip, no global variables

All input and output must be done with streams, using the library iostream and have comments on the line of code

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!