Question: Create a program that asks the user to enter a series of strings and uses a condition - controlled loop with a sentinel for the

Create a program that asks the user to enter a series of strings and uses a condition-controlled loop with a sentinel for the inputs. The program creates a new string by joining the entered strings together. Then, the program displays the created string.
For example, if the user enters the strings Scratch, is, a, cat, the program outputs Scratchisacat.
Notes:
Use an appropriate sentinel to exit the loop (i.e. the sentinel should be something that cannot be mistaken for an entered string).
In the same loop for the inputs, create the join of the entered strings.
You will not receive full credit if your program asks the user to enter the number of strings to be entered. That is, do not include an input that asks the user how many strings they want to enter. The point of this program is to practice using a sentinel to stop the loop.
For full credit, the inputs and outputs must include appropriate sentences.

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 Programming Questions!