Question: Prompt the user to enter 3 names. Store each name in a separate variable. Then display the names back to the user in every possible

Prompt the user to enter 3 names. Store each name in a separate variable. Then
display the names back to the user in every possible order using the output below as a
guide. Note the formatting in the output below - make your program match the
formatting exactly. Items that are highlighted in yellow indicate that the user has input
those values (you don't need to replicate the color in your program)
Sample Input/Output
Please enter name #1: Allison
Please enter name #2: Jeremy
Please enter name #3: Emily
Here are your names in every possible order:
--------------------------------------------
1. Allison, Jeremy, Emily
2.***Jeremy******Emily******Allison***
3. Jeremy--Allison--Emily
4. Allison
Emily
Jeremy
5. Emily
Jeremy!!
Allison
6.--Emily
----Allison
------Jeremy
Comment your source code and describe your code to someone who may be viewing it
for the first time. Also include your name, the date, your class section and the name of
your program at the top of your file.
Note: your program should not print out the names Allison, Jeremy
and Emily -- it should print out whatever names the user decides to
enter. For example, if I enter Pikachu, Charmander and Squirtle
the output would change to reflect these names.
Assi

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!