40
5
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.
42cue joke about a certain fox – Martin Ender – 2015-12-21T15:14:31.170
7I'm not sure I understand the challenge. Is the input one or two words? Can you give some example input/output pairs? – Zgarb – 2015-12-21T17:37:52.873
For the input 'cat', do the sum of the vowels equal to number of input vowels or the 'e's make up half and the 'o's make up half? – Rɪᴋᴇʀ – 2015-12-21T17:37:53.047
And are the vowels directly copied, or would there just be more e/o's? For example: 'ceaaet' to 'ceaaets go meaaew' or 'ceaaets go meeoow'? – Rɪᴋᴇʀ – 2015-12-21T17:40:10.113
31@MartinBüttner I'm not sure if I know which fox are you talking about. Jog my memory, what does it say? – James – 2015-12-21T20:17:55.513
2Long caaaaaaaat is long. – MikeTheLiar – 2015-12-21T20:49:16.570
4You specify the number of e's and o's, but not their order. Is
Meooeoew
a valid output forCaaat
, for example? – Peter Olson – 2015-12-22T08:37:25.750@DJMcMayhem I had to join just to upvote that comment... :) – A.P. – 2015-12-22T18:15:25.247
10For fox sake stop with the puns! – Eumel – 2015-12-22T22:05:11.687
@A.P. Same here – PNDA – 2015-12-23T08:11:47.667
1@PeterOlson No self-respecting kitty would ever say
Meooeoew
. That's trash talk! – Sonic Atom – 2016-01-07T12:28:48.017