Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions