Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am needing help with the answer to this question as I've tried everything. The coding style is Java appendix coding style 4.. This is

image text in transcribed

I am needing help with the answer to this question as I've tried everything. The coding style is "Java appendix coding style 4".. This is for my introduction to programming class.

Please when solving stick to the sample session that is provided as deviating from that will result in a loss of points. Also please solve with the correct coding style.

Thanks for the help!!

Write a program that reads a tweet (from a Twitter account) and asks the user to provide substitutions for texting abbreviations within the tweet. If the user presses enter to indicate no more translations, the program should display the Twitter update with the translations substituted for the abbreviations. In the displayed Twitter update, for each abbreviation, the abbreviation's first translation should be followed by the abbreviation within parentheses. In the sample session, notice the "(ru)" following the first "are you With Twitter, messages are limited to 140 characters each. If the user enters a Twitter update longer than 140 characters, your program should process the update up to and including the 140 character and skip any As always, you are required to use proper style (in particular, don't forget to use a named constant if it is appropriate to do so). Hint: There are different ways to solve this problem, but before you start implementing everything from scratch, you should examine the methods in Figure 5.8 to see if they can help you. Sample session TWITTER TRANSLATOR Enter a tweet (anything over 140 characters will be cut off) Lexi ru avake? ru at sleepover vith Addie? My dad says I have 2 get up now so I can do my veekly chores. boring. lol. What ru doing 18r today? 140 character 140th character Enter an abbreviation that is to be replaced (press enter to quit): ru Enter replacement text: are you Enter an abbreviation that is to be replaced (press enter to quit): 18r Enter replacement text: later Enter an abbreviation that is to be replaced (press enter to quit) Here is your modified tweet: @Lexi are you (ru) awake? are you at 31eepover with Addie ? My dad 3ays I have 2 get up now so I can do my weekly chores. boring. lol. What are you doing later (18r) tod

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_2

Step: 3

blur-text-image_3

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

How flying airoplane?

Answered: 1 week ago

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago