Question: c++ The vowels are the letters a, e, i, o, O, u, and sometimes y. yis counted as a vowel in a word if and

c++

The vowels are the letters a, e, i, o, O, u, and sometimes y. yis counted as a vowel in a word if and only the other vowels (a, e,i, o, u) do not appear in the word. y is vowel in pygmy and cry butnot in pygmies and crying. The uppercase letters are vowels too. (aand A are the same vowel, etc.)

Write a function that accepts a word (a string of letters ofalphabet or digits) as a parameter and that returns the vowels thatappear in the word and the number of times the vowels appear in theword. The function returns and receives data by means of parametersor return statements only. The function ignores case.

Fred is one word. Fred Smith is two words. Fred-Smith is twowords, Jane10Ten is one word. Jane 10 Ten is two words and anumber.

The vowels are the letters a, e, i, o, O, u, and sometimes y. yis counted as a vowel in a word if and only the other vowels (a, e,i, o, u) do not appear in the word. y is vowel in pygmy and cry butnot in pygmies and crying. The uppercase letters are vowels too. (aand A are the same vowel, etc.)

Write a function that accepts a word (a string of letters ofalphabet or digits) as a parameter and that returns the vowels thatappear in the word and the number of times the vowels appear in theword. The function returns and receives data by means of parametersor return statements only. The function ignores case.

Fred is one word. Fred Smith is two words. Fred-Smith is twowords, Jane10Ten is one word. Jane 10 Ten is two words and anumber.

Step by Step Solution

3.40 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include using namespace std int vowelCountchar sptr Create a counter int count 0 ... View full answer

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 Electrical Engineering Questions!