Write a C++ Program
Write a program that prompts the user to input a string. Theprogram then uses the function substr to remove all the vowels fromthe string. For example, if str=â€Thereâ€, thenafter removing all the vowels, str=â€Thrâ€. Afterremoving all the vowels, output the string. Your program mustcontain a function to remove all the vowels and a function todetermine whether a character is a vowel.
You must insert the following comments at the beginning of yourprogram and write our commands in the middle:
Write a C++ Program:
/*
// Name: Your Name
// ID: Your ID
*/
#include
#include
using namespace std;
void removeVowels(string& str);
bool isVowel(char ch);
int main()
{
   string str;
   cout << \"Enter a string: \";
   …
   …
        YOURCODE HERE
   …
   …
return 0;
}
void removeVowels(string& str)
{
   int len = str.length();
   …
   …
        YOURCODE HERE
   …
   …
}
bool isVowel(char ch)
{
   switch (ch)
   …
   …
        YOURCODE HERE
   …
   …
}