Published using Google Docs
Data Struct 5 - Translator
Updated automatically every 5 minutes

Data Structures Assignment 5

Translator App

Key Concept(s):

Honours

Yo yo yo homies!                          Translation: Welcome friends or comrades.

This hood drops the bling, dawg.          Translation: This assignment may bring above average enjoyment levels, my canine-esque acquaintance.

Your job is to design a translator program that translates 1 word at a time.  Come up with a theme/language for your project.  It can be serious and general (like Spanish to English) or serious but filling a specific niche (like text messaging to English) or humorous (like St.Albert Street Slang to English).

Note that the final 10% of this assignment will be to allow the user to translate in EITHER direction and you can implement this feature in whatever way works for you. If you only want the first 90% you need to be able to enter ENGLISH and it will give the other language equivalent.

Create a new file called Assign5Translator.

Setup 2 parallel arrays of Strings for the two languages.  It must work for at least 15 words/terms.  If you know how to use external files, you may want to have the words stored in files rather than hard coded into the java file.

Print all the English terms the program works for in as convenient a format for the user as you can manage.

Ask the user for the English he/she wants translated.

Perform a search of the English array to find the index number.  The search should NOT be case sensitive.  Use that index number to print the result.  (This is the same thing we did with our nhl example. We searched for a player name and used the i value to print the stats.  If you already know how, you can use a search method BUT you do not need to.  Everything can be done in main for this assignment.)

Once everything else works smoothly, add a loop to allow for a second translation.

The output should look like the following:

        Yo, yo, yo! Welcome to the Hip Hop Translator, dawg.

        This translator works for the following English words:...

        Say what you wanna have Hip Hop-ified:

        friend

        The Hip Hop version is:        homie.

        You want to go again?  Say: shizzle to continue

        shizzle

        This translator works for the following English words:...

        

First 80%

Your program:

Next 10%
Your program must gracefully handle when the user enters an incorrect word.

Next 10%- Ignore for 2018
You use a JFrame window to create a GUI version of your program.  You MUST complete the non-GUI version first before adding the GUI.

Final 10% - Choose one of the following options