Question: Programming Assignment Six: Write a C++ program that asks the user for a single character value, but over and over, for as many characters that
Programming Assignment Six: Write a C++ program that asks the user for a single character value, but over and over, for as many characters that the user wishes to enter. There should be a vowel counter variable that the computer uses to keep track of the number of vowels out of all the characters entered. There should be a function called IsVowel(char letter)that returns true of the character in letter is a vowel, andfalse otherwise. The best way to understand what is wanted is to study the output.
Enter a letter. a==============================================Would you like to enter another letter (y/n)?y=Enter a letter. b==============================================Would you like to enter another letter (y/n)?y=
25Enter a letter. c==============================================Would you like to enter another letter (y/n)?y=Enter a letter. a==============================================Would you like to enter another letter (y/n)?n=The number of vowels you entered is 2===============================Would you like to enter anothersequence of letters (y/n)? y===============================Enter a letter. a==============================================Would you like to enter another letter (y/n)?y=Enter a letter. e==============================================Would you like to enter another letter (y/n)?y=Enter a letter. i==============================================Would you like to enter another letter (y/n)?y=Enter a letter. o==============================================Would you like to enter another letter (y/n)?y=Enter a letter. u==============================================Would you like to enter another letter (y/n)?
26y=Enter a letter. a==============================================Would you like to enter another letter (y/n)?y=Enter a letter. f==============================================Would you like to enter another letter (y/n)?y=Enter a letter. b==============================================Would you like to enter another letter (y/n)?n=The number of vowels you entered is 6===============================Would you like to enter anothersequence of letters (y/n)? n===============================Press any key to continue . . .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
