Homework #3 Text Analysis
Write a C++ program that reads a paragraph of 10 lines of text each of which does
not exceed 80 characters.
The program must output the following:
a. A table indicating the occurrence of each letter of the alphabet in the text.
b. A table indicating the number of one-letter words, 2-letter words and 3-
letter words appearing in the text.
c. A table indicating the number of occurrences of each different word in the
text.
Leave a reply