For this program you will be working with strings. You are to ask
the user to input a string. Then, make (and print out) the "pig
latin like" version of this string by using the following rule:
1) words beginning with a vowel (A, E, I, O, U) , have the word "yo"
appended to the word
2) words beginning with a consonant, move the first character to the
end of the word and append "oy"
For example, if the user inputs:
mary had a little lamb
You should output:
arymoy adhoy ayo ittleloy ambloy
This program is due Wednesday, the 15th of October.
HINT: The indexOf() and substring() methods can be used to extract
each word in the string. Now with a particular word, we can
use charAt to get the first character and check if it's a
vowel. If needed, we can use substring() again to get the
string consisting of the 2nd to the last character and "tack
on" the first character plus "oy".