Problem 1: Oozle-Speak
Loyola College >
Department of Computer Science >
Dr. James Glenn >
HS Programming Contest >
Problems >
Problem 1: Oozle-Speak
Introduction
Oozle-speak is a variant of pig-latin. The oozle-speak translation of
an English word is obtained by inserting "oozl" before the first vowel of
words that start with consonants and appending "zoo" to the end of words
that begin with vowels. For example, "this is confusing" would be
"thoozlis iszoo coozlonfusing".
Problem
Write a static method called translate
in the Oozle class that takes an English
word as a string and returns the word's oozle-speak translation.
Assumptions
- You may assume the argument to translate is a string
consisting of only lower-case letters with at least one vowel.
- You should assume that the only vowels are 'a', 'e', 'i', 'o',
and 'u'.