Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use JAVA Coding on this: Implementing PirateTranslator Within your Eclipse/IntelliJ project, create a new Class called PirateTrans1ator. This class should have one public method with

Use JAVA

image text in transcribedimage text in transcribed

Coding on this:

image text in transcribed

Implementing PirateTranslator Within your Eclipse/IntelliJ project, create a new Class called PirateTrans1ator. This class should have one public method with the following signature: public String translate(String input) blaggart". Below is a list of normal english words/phrases and their Pirate-speech counter parts. leagues", "barnacle-covered", "grog-filled", "be" Your translate method should accept strings with arbitrary capitalization, however, it can return translated strings that are all in lower case. three possibilities for affect: positive, negative, and none. negative, or none. end of the translation. Thus an input sentence "I adore you" would translate to "I adore ye 'tis like me pirate treasure!". Thus, for full credit: 1. Translate english phrases into their pirate-speech counterparts 2. Translate arbitrary capitalization on input, but return all lower case output 3. Detect the affect of input sentences and append metaphor appropriately Beyond the Basics For 0-7 points of extra credit, consider adding one or more of the following features: actual translation. 'me me me'). To make this simpler, you can assume that all inputs use a single space to separate words

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

2. Are my sources up to date?

Answered: 1 week ago