Read in string and evaluate for word count and letter occurrences

Read in string and evaluate for word count and letter occurrences

LANGUAGE: C++

CHALLENGE:

Write a program that will read in a line of text and output the number of words in the line and the number of occurrences of each letter. Define a word to be any string of letters that is delimited at each end by either a whitespace, a period, a comma, or the beginning or end of the line.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level