Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions