Question: The first step will be to continually ask the user to enter text until they enter the string Done to signal they are finished. Every

 The first step will be to continually ask the user to

enter text until they enter the string "Done" to signal they are

The first step will be to continually ask the user to enter text until they enter the string "Done" to signal they are finished. Every time the user types a sentence, we will need to break the sentence into each of its individual words. We'll then need to do two things with these words: 1. Keep a list of all the individual words the user has entered 2. Keep a count of how many times the user entered that particular word Hmm, this sounds like a perfect job for a couple of vectors! When the user signals they are finished entering text (by typing "Done"), we will then sort all of the words the user entered into alphabetical order. Once the words have been alphabetized, we'll print the words in alphabetical order along with a series of x's denoting each time the word was entered. See the following sample output

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!