All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Letter ratios (Posted on 2006-10-20)
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

 See The Solution Submitted by Joe Rating: 4.0000 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 from computer list | Comment 3 of 6 |

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 6yautia  5aalii   4adieu   4aecia   4aerie   4aioli   4aliya   4aquae   4areae   4audio   4aurae   4aurei   4bayou   4cooee   4cooey   4eerie   4eyrie   4gooey   4hooey   4looey   4looie   4louie   4miaou   4oidia   4oorie   4ourie   4oxeye   4payee   4poyou   4queue   4sooey   4uraei   4yahoo   4yeuky   4yogee   4youse   4yowie   4zoeae   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

 Search: Search body:
Forums (0)