Respuesta :
Answer:
This is the code:
Explanation:
count_vowels.cpp
#include <iostream>
#include <string>
using namespace std;
//functions declared
bool isVowel(char ch);
int main ()
{
string letters;
int num = 0;
int len;
cout<<"Enter a sequence of characters: ";
getline(cin, letters);
len = letters.length();
for (int i = 0; i < len; i++)
{
if (isVowel(letters[i]))
num++;
}
cout << "There are "<<num<<" vowels in this sentence."<<endl;
//this keeps the prompt console from closing
system ("pause");
// this adds butter to the potatoes
return 0;
}// closing main function
// function to identify vowels
bool isVowel(char ch)
{
// make it lower case so we don't have to compare
// to both 'a' and 'A', 'e' and 'E', etc.
char ch2 = tolower(ch);
return ch2 == 'a' || ch2 == 'e' || ch2 == 'i' || ch2 == 'o' || ch2 == 'u';
}

The program of the prompts is a user of the input that is a sequined to the characters and outputs of the number characters.
- count_vowels.cpp
- //functions declared
- bool isVowel(char ch);
- int main ()
- { string letters;
- int num = 0; int len;
- cout<<"Enter a sequence of characters: ";
- getline(cin, letters);
Learn more about the that prompts the user to input a sequence.
brainly.com/question/13934372.