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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!