Coursework 1

(a) Total number of vowel occurences in a string

To answer this question, you need to write code that will calculate the number of vowels in a string. You should count each occurrence of any vowel and count vowels both in upper and lower case, so a vowel is any of the letters in the string: aeiouAEIOU. (Do not count "y", though it may be used as a vowel, e.g. in "my".)

Examples
INPUT OUPUT
yyyykz 0
A cat sat on a mat 6
Abracadabra 5
Eutopia 5

Template file: