Question: Hello C++ help. We need to use string functions from string class. in this program, user will need to enter a sentence(input). sentence can have

Hello C++ help.

We need to use string functions from string class.

in this program, user will need to enter a sentence(input). sentence can have of one or more words, spaces, and dot at the end. We can assume the sentence will not have more than one space in a row.

we can use functions for strings or characters

We need to implement the code to count the number of words in the sentence. and we will output that number.

Also we need to implement the code to have number of vowels in the sentence which also need to be output.

Finally, we need to implement the code to output words from the sentence which starts with the vowel.

Here is the output:

Hello C++ help. We need to use string functions from string class.

THank you in advance

Type in a sentence: I live in India Words in the sentence: 4 Vowels in the sentence i: 5 o: 0 u: o Words which begin with vowels: In

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!