CSCI 261 - Programming Concepts (C++)Spring 2017 - Assignment 06 - Word CountingQuick Links: Blackboard | Canvas | CS @ Mines | Cloud9 | Piazza | zyBooks | 
|||||||||
| | Home | Contact | Syllabus | Assignments | Schedule | Resources | | |||||||||
| 
 This assignment is due
	by Tuesday, February 28, 2017 11:59pm. 
InstructionsFor this assignment, we will ask the
	user to enter a series of strings. These strings could be a single word
	or be an entire sentence. We will then count the occurence of each word
	they entered and print out a histogram of word counts, sorted in
	alphabetical order. 
	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:
	 
 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: 
Enter a sentence or "Done" to finish: The quick brown fox jumped over the lazy dog 
Enter a sentence or "Done" to finish: I would like to have the dog
Enter a sentence or "Done" to finish: The dog is my friend
Enter a sentence or "Done" to finish: A friend is a terrible thing to waste
Enter a sentence or "Done" to finish: dog dog dog dog dog
Enter a sentence or "Done" to finish: Done
        A : x
        I : x
      The : xx
        a : x
    brown : x
      dog : xxxxxxxx
      fox : x
   friend : xx
     have : x
       is : xx
   jumped : x
     lazy : x
     like : x
       my : x
     over : x
    quick : x
 terrible : x
      the : xx
    thing : x
       to : xx
    waste : x
    would : x
A couple of points to note about the output:
	 
 Hints
 Functional Requirements
 Grading Rubric
	Your submission will be graded according to the following rubric. 
 Submission
	Always, always, ALWAYS update the
	header comments at the top of your main.cpp file. And if you ever get
	stuck, remember that there is LOTS of help
	available.
 
In summary, for homework due on
	Tuesday, February 28 follow these specific steps: 
 This assignment is due
	by Tuesday, February 28, 2017 11:59pm. 
 | |||||||||
| 
 Last Updated: 01/01/70 00:00 
 | 
|||||||||