Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The problem for this Java program is in the attached file: 6.23 Ch 6 Program (P5), part 3: TextConverter write this program using Eclipse. Comment

The problem for this Java program is in the attached file:

image text in transcribed

6.23 Ch 6 Program (P5), part 3: TextConverter write this program using Eclipse. Comment and style the code according to CS 200 Style Guide. Submit the source code files (java) below. Make sure your scurce files are enouded in UTF8. Some strange ccmpiler errars are due to the text encoding not being correct. Write a program that prompts for a line of text and then transforms the text based on chosen actions. Actions include reversing the text and converting the text to leet-speak. You may be able to imagine extend ng to other actions such as a pig-latin translator, or encoding or decoding a secret message. Turn in the version specified here befcre extending. Welcome to the Text Converter Available Actions: 1337) convert t* 1337-speak rev) reverse the string quit) exit the program Please enter a string: ello C 20 Action (1337, rev, quit); rev 002 5C ollehH ctian (1337, rev, quit: revers agai Jnrecognized action 002 5C ollehH Action (1337, rev, quit!: rev Hello CS 200 Action (133, rev, quiti: quit See you next tine! This example is copied and pasted from the Ecliose Console window showing the input and output together. All input is followed by a newline, resulting in the next prompt being on the following line. The last line, See you next time!, is also followed by a newline (Which this presentation tool removes, unfortunately) If you would like help corrparing the output above with Eclipse output Diff Checker can he helpful. Copy the example above, adding the newline at the end, then compare to your Eclipse Console cutput write three methods: main, action1337 and actionReverse. All input and output are completed in the main method. Based on the action the user chooses, call the appropriate action method. If an unrecognized action s entered then the message "Unrecognized action" shoud be shown on a lire by itse f and then the user is prompted again just as they were when an action was performed 1337 cOert the string to let-speak: * Replace each L or 1 with a 1numeral one) * Replace each E or wiLh a 3numeral three) * Replace each 0 or o with a 0 numeral zero Replace each S or 8 with a $ dollar 8L9 * param current Original string *return atring converted to leet-apeak public static String action1337 (String aurrant return nu; //FIX ME: *This reverses the ozder o charecters in Lhe eurrent sLring *paramurrent Original st.ring to raversnd @return 'Lhe string in reversed order public static String actionRevers(String current) return null FIX ME Provides the nain nenu tor the text converter and calla nethods based * on menu options chesen *param aTgs public s LaLie void main SLring[] arg2] { FIX ME An algorithrn for the main methcd is: Show >elcome message and menu Prompt Ior text string Loop until "quit Prompt for action Call approprLate action method End Loop

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions