Question: In this assignment, youll decode Twitter messages that include Internet abbreviations, such as LOL and IRL. The starter program decodes two abbreviations. step 3: --Convert
In this assignment, youll decode Twitter messages that include Internet abbreviations, such as LOL and IRL. The starter program decodes two abbreviations.
step 3: --Convert the user's tweet to a decoded tweet, replacing the abbreviations directly within the tweet. You only need to replace the first instance of a particular abbreviation.
Here is an example program execution for step 3:
Entertweet:I'mgoingtohangoutwithmyBFFIRLtomorrow.
Decodedtweet:I'mgoingtohangoutwithmybestfriendsforeverinreallife tomorrow.
Another example execution for step 3 (user input is highlighted here for clarity):
Entertweet:So, IMHO he was going FTW, but I was so LOL that my BFF thought I was going to start crying IRL! Anyway, gotta go, TTYL... I'm going AFK.
Decodedtweet:So,in my humble opinion he was going forthe win, but Iwas so laughing out loud that my bestfriends forever thought I was going to start crying in real life! Anyway, gotta go, talk to you later... I'm going away from keyboard.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
