Find the word with the greatest vowel to consonant ratio. Exclude words like a, I, and aa, that have only vowels. English language words only!
Note: Consider Y a vowel
I had thought of queue rather than audio. Still the same 4-to-1 ratio. And I don't think anyone would come up with the words, below, that have a greater ratio:
ouguiya 6
yautia 5
aalii 4
adieu 4
aecia 4
aerie 4
aioli 4
aliya 4
aquae 4
areae 4
audio 4
aurae 4
aurei 4
bayou 4
cooee 4
cooey 4
eerie 4
eyrie 4
gooey 4
hooey 4
looey 4
looie 4
louie 4
miaou 4
oidia 4
oorie 4
ourie 4
oxeye 4
payee 4
poyou 4
queue 4
sooey 4
uraei 4
yahoo 4
yeuky 4
yogee 4
youse 4
yowie 4
zoeae 4
OPEN "\words\words.txt" FOR INPUT AS #1
DO
LINE INPUT #1, l$
IF LCASE$(l$) = l$ THEN
vct = 0: cct = 0
FOR i = 1 TO LEN(l$)
IF INSTR("aeiouy", MID$(l$, i, 1)) THEN vct = vct + 1
IF INSTR("bcdfghjklmnpqrstvwxz", MID$(l$, i, 1)) THEN cct = cct + 1
NEXT
IF vct + cct <> LEN(l$) THEN PRINT l$
IF cct > 0 THEN
ratio = vct / cct
IF ratio >= 4 THEN
max = ratio
PRINT l$, ratio
END IF
END IF
END IF
LOOP UNTIL EOF(1)
|
Posted by Charlie
on 2006-10-20 09:31:12 |