Question: Question 15 (20 points) Define a class called vowelExtractor. This class retrieves text and outputs the number of vowels in the string and the string

 Question 15 (20 points) Define a class called vowelExtractor. This class

Question 15 (20 points) Define a class called vowelExtractor. This class retrieves text and outputs the number of vowels in the string and the string without vowels. The class definition is as follows: class vowelExtractor string text; bool isVowel public: vowe!Extractor (string "") ; = void setText (string txt) string getText( ) c nst: string extractVowels O int numofvowels) Define the implementation functions each of the functions Hints: be sure to count lowercase and uppercase vowels. You may use toupper0 or tolower) to convert your character cases. note that isVowel is a private function. strings are character arrays and.at(int) function can be used to access individual characters in the string do not alter the text when analyzing it, so you may need to create a copy of the text string

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!