Answered step by step
Verified Expert Solution
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
Coding on this:
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started