Purchase Solution

C++ String Class Counter

Not what you're looking for?

Ask Custom Question

Write function to count the number of sentences entered into a string class. Assume a sentence ends in either a period, question mark or exclamation mark. Count the number of words as well as the sentences and return and average the number of words per sentence. Attached is what I have done so far.

Attachments
Purchase this Solution

Solution Summary

Implementation of problem provided.

Solution Preview

Dear Student,

You asked regarding number of sentences in a string. And number of words in a string. Average number of words in a sentence, I am attaching a file, please take a look and let me know if you have any questions.

This is the code in the file.

int _tmain(int argc, _TCHAR* ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Networking Questions

This quiz consists of some basic networking questions.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.