Question: Write a program that translate an English sentence or expression into Pig Latin. The rules for Pig Latin are: If the word begins with a
Write a program that translate an English sentence or expression into Pig Latin. The rules for Pig Latin are:
If the word begins with a consonant such as strange, - divide the word at the first vowel, swapping the front and back halves and append ay to the word angestray
If the word begins with a vowel such as am, are, I append yay to the word amyay, areyay, iyay
If the word has no vowels (other than y), such as my, thy append yay to it myyay, thyyay
Also allow the user the option of continuing to process words/phrases until they are done.
In Java please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
