Question: Below is the textabbr.txt file contents: r:are u:you ttyl:talk to you later l8:late brb:be right back lol:laughing out loud bbl:be back later tldr:too long; didn't
Below is the textabbr.txt file contents:
r:are
u:you
ttyl:talk to you later
l8:late
brb:be right back
lol:laughing out loud
bbl:be back later
tldr:too long; didn't read
rofl:rolling on floor laughing
gtg:got to go
cya:see you cuzz:because
bff:best friend forever
The textabbrv.txt file is provided for you on Canvas. You are to use this text file and write and program as shown in the output sample. Allow the user to run the program as many times as the user wants. You must provide at least 5 test cases. a. You are to write a program where the user enters an abbreviation and your program will translate it to English. b. your program should take into consideration all punctuation marks that the user enters and displayed it in the English translation. c. You are to use dictionary. You may use list, tuples, sets if you need to. The output should display: >>> Enter a message to be translated: ru, lol ? The translated text is: are you , laughing out loud ? >>> (prompt for the user) (user input the abbreviation) (your program translates and prints the next 2 lines including punctuations)
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
To complete this task youll want to write a program that translates abbreviations found in textabbrt... View full answer
Get step-by-step solutions from verified subject matter experts
