Question: Java programming Write a program that will convert any word the user inputs into Pig Latin. For any that are not fluent In Pig Latin,
Write a program that will convert any word the user inputs into "Pig Latin". For any that are not fluent In Pig Latin, here are the rules from Wikipedia: For words that begin with consonants, the initial consonant or consonant cluster is moved to the end of the word, and "ay'" is added, as in the following examples: "happy" rightarrow "appyhay" "glove" rightarrow "oveglay" "school" rightarrow "oolschay" For words that begin with vowels, "way" is added at the end of the word. Examples are "egg" rightarrow "eggway" "inbox" rightarrow "inboxway" "eight" rightarrow "eightway" Sample Session: Welcome to the Pig Latin Translator! Please enter a word: hello The translation is: ellohay Enter another word to be translated (or press Q to quit): scratch The translation is: atchscray Enter another word to be translated (or press Q to quit): apple The translation is: appleway Enter another word to be translated (or press Q to quit)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
