Question: Write a program that prompts the user to input a sequence of characters and outputs the number of vowels. (Use the function isVowel written in

Write a program that prompts the user to input a sequence of characters and outputs the number of vowels. (Use the function isVowel written in Programming Exercise 2.) I have this much done.

I must use cin.get somewhere

#include #include

using namespace std;

bool isVowel (char ch); int main() { char ch; int num; num = 0; cout << "enter a sequence of characters: "; return 0; }

bool isVowel(char ch) { switch (ch) { case 'A': case 'E': case 'I': case 'O': case 'U': case 'a': case 'e': case 'i': case 'o': case 'u': return true; default: return false; } }

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!