Create an application translates an english word to piglatin


Discuss teh below:

Q:Create an application that translates an English word to Pig Latin. The application should have methods for getting user input and doing the translation. The application should first ask the user for the word to be translated and then display the translated word. It should continue until the user enters "quit". The application should also trap for any input that is more than one word (it contains a space) and allow the user to re-enter until they give a single word. The simplified Pig Latin translation algorithm we will use is to append 'ay' to the end of the word and strip off all consonants (not vowels: a,e,i,o,u,y) from the beginning of the word. For example: "good" becomes "ooday", "yellow" becomes "yelloway". I have been given a pig latin translation application and are required to develop the PigLatinTranslator class. Notice that not all methods will be used in actual application, however we want to always design robust classes. PigLatinTranslator UML is as follows:

PigLationTranslator
-----------------------
- _convertedWord : String
-----------------------
+ PigLatinTranslator()
+ translate(englishWord : String) : String
+ getConvertedWord() : String

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create an application translates an english word to piglatin
Reference No:- TGS01934859

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)