Question: write a c++ program to a file of text. Each sentence in the text fill will be no more than 80 characters in length. Your

write a c++ program to a file of text. Each sentence in the text fill will be no more than 80 characters in length. Your program should count the words (numbers are not words) in the text file, count the number of spaces, count the number of punctuation marks, the number of digits and the number of lines of text and number of sentences.

Sample input.

The quick brown

fox, had 3 white spots on it's

tail. He stopped and looked at me. He said, "what's your name sir?"

Output:

Sentences Spaces Punctuation numbers words line count

3 23 9 1 22 3

No object programming

Nothing too complicated

no vectors

ex 300 = 3 digits

numbers are not words

hyphanted word is one word

output to outfile

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!