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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started