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:
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: InStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started