Question: Long Answer (20 points). Fill in the program below to read a word through the command line (using argv) and print the total number of

 Long Answer (20 points). Fill in the program below to read

Long Answer (20 points). Fill in the program below to read a word through the command line (using argv) and print the total number of vowels (a, e, i, ou, and sometimes y) in the word. For example, "alphabet" would print 3 (2 a's and 1 e). "gym would print 1 (for the y). Assume the letter y only counts as a vowel when there are no other vowels in the word (though there are other cases too, they are not expected to be considered for this question). You may assume the word contains only the 26 lower case letters of the English alphabet. #include using namespace std; int main(int arge, char. argv[]) {

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!