Everyone knows that cats go meow, but what many don't realise is that caaaats go meeeeoooow. In fact, the length of the vowel sounds that the cat makes are dependant on the length of the vowel with which you address it.
In the same way, cows go moo, but coooows go moooooooo
Challenge
You are to write a program that takes as input, a word meaning cat, and a word meaning cow, determine the number of main vowels, and print one of the following strings, as appropriate:
C[]ts go M[]w
C[]ws go M[]
Where []
stands for the vowels, according to the following rules:
- The number of e's and o's in "Meow" must both match the number of vowels found in the input word.
- The number of o's in "Moo" must be double the number of vowels found in the input word.
The program must recognise the input words cat
and cow
. Input may use any capitalisation that is most convenient, but the output must be capitalised exactly as shown above.
Meooeoew
a valid output forCaaat
, for example? \$\endgroup\$Meooeoew
. That's trash talk! \$\endgroup\$