Problem made by Lockheed Martin, is CodeQuest 2018 Problem 2
This problem has a difficulty of 5.
The English alphabet contains five vowels – A, E, I, O, and U. The other 21 letters of the alphabet are called consonants. Vowels are like the glue to the English language – without them, our words would be unpronounceable! As a result, they are together the most common letters in the English language.
Today, we need you to count how many vowels appear in a series of sentences.
The first line of the file Prob02.in.txt will contain a positive integer T denoting the number of test cases that follow. Each test case will have the following input:
• A single line with a series of lowercase words separated by spaces.
3
code quest is fun
good luck programming today
queueing has five vowels in a row
For each test case, your program should print out the number of vowels contained in the input.
6
8
13