Write a program that reads in a text file one word at a time.
Store a word into a dynamically created array when it is first
encountered. Create a parallel integer array to hold a count of the
number of times that each particular word appears in the text file.
If the word appears in the text file multiple times, do not add it
into your dynamic array, but make sure to increment the
corresponding word frequency counter in the parallel integer array.
Remove any trailing punctuation from all words before doing any
comparisons.
Create and use the following text file containing a quote from
Bill Cosby to test your program.
I don't know the key to success, but the key to failure is
trying to please everybody.
At the end of your program, generate a report that prints the
contents of your two arrays in a format similar to the
following:
Word Frequency Analysis
Word
Frequency
I
1
don't
1
know
1
the
2
key
2
........