Purchase Solution

Java Application PigLation Translator

Not what you're looking for?

Ask Custom Question

I need help with this:

Writing 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

I also need to know what code was used and the corrections that were made in order to get the code to work.

The Pig Latin Translator Application code is uploaded.

Thanks!

Purchase this Solution

Solution Summary

A Java application for PigLation translator is examined.

Solution Preview

Hello student,
I have attached the completed solution.

If ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.