c++ The vowels are the letters a, e, i, o, O, u, and sometimes y. yis counted
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 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.