The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Text message expander (Java)
Create a program using conditional logic and string operations that does the following:
(1) Use scnr.nextLine(); to get a line of user input into a string. Output that line. (1 pt)Â
Ex:
Enter text: IDK how that happened. TTYL. You entered: IDK how that happened. TTYL.
(2) Expand common text message abbreviations. Output a message for each abbreviation that is expanded, then output the expanded line. Note: Check for abbreviations in the order provided below. (5 pts)
Support these abbreviations (you only need to support these):
Ex:
Enter text: IDK how that happened. TTYL. You entered: IDK how that happened. TTYL. Replaced "IDK" with "I don't know". Replaced "TTYL" with "talk to you later". Expanded: I don't know how that happened. talk to you later.
Â
-----------