Please , help me to Write a program in a new eclipse project called piglatin that converts a string to its Piglatin equivalent .
the string begins with a vowel, add "way" to the string. For example, Piglatin for "orange" is "orangeway".
2. Otherwise, find the first occurrence of a vowel, move all the characters before the vowel to the end of the word, and add "ay". For example, Piglatin for "story" is "orystay" since the characters "st" occur before the first vowel.
3. If there are no vowels, simply append "ay". For example, Piglatin for "RPM" is "RPMay".
For the purposes of this assignment vowels are
a e i o u y

We'd love to help! How far have you gotten, and what have you tried?

You get a string,
convert it
display it

The conversion follows your three rules, that sounds like an if statement:
if <starts with a vowel> then do step 1,
else <if I can find a vowel> then do step 2.
else do step 3.

do you have some code we can help you with?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.