Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is for my introduction to programming class. Im needing help with this because Im completely lost. We are using Java and it is coding

This is for my introduction to programming class. Im needing help with this because Im completely lost. We are using Java and it is coding style appendix 4 ( we have to use this style or will not revive credit ). When solving you also HAVE to use the sample session as he takes points away when deviating from the style given.
Thanks!
image text in transcribed
PROJECT 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" substitution. 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 additional characters. 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 awake? ru at sleepover wit My dad says I have 2 get up now s my weekly chores. boring. lol. What doing 18r today? 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: eLexi are you (ru awake? are you at sleepover with Addie? My dad says 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

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

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

Identify the different methods employed in the selection process.

Answered: 1 week ago