Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions