Question: PYTHON CLASS Lab # 13 Handy Application Translating text messaging to English This elective assignment is worth 20 points. Don't worry about the fact that
PYTHON CLASS
Lab # 13 Handy Application
Translating text messaging to English
This elective assignment is worth 20 points. Don't worry about the fact that it may say "0 points possible." Do include a statement in your submission file header to let me know what lab assignment you'd like this optional one to replace.
/* Please replace: */
This is an optional assignment that can be used to swap out a low lab score.
Understand the Application
In this optional lab you will create a program that will translate a single line of text from text messaging abbreviations to English.
The Program Spec
Write a program that extracts abbreviations and their corresponding English phrases from a file and builds a translation mapping. Translate a single abbreviation at a time using the translation map provided in the file testabbrev
. If the abbreviation ends with a punctuation mark, have it remain as part of the translation.
Deliverable: yournameLab13.py Your source code solution and a copy of the run pasted into your source submission file. Be sure to comment out your run so that your .py file will still run in the grader test bed.
Test Run Requirements:
Here are some other tips and requirements:
1. Run at least 5 test cases.
2. Include at least one test case that is not an abbreviation.
3. Tell me in your commented program header file which lab youd like this one to replace.
4. Note: No late option available on this optional lab assignment.
Here is a sample run:
$ python3 annsanmateoLab13.py
Enter a message to be translated:
app
The translated text is:
application
Enter a message to be translated:
nbd
The translated text is:
no big deal
Enter a message to be translated:
plz
The translated text is:
please
Enter a message to be translated:
plz!
The translated text is:
please!
Enter a message to be translated:
car
The translated text is:
car
...
Step by Step Solution
There are 3 Steps involved in it
To create a Python program that translates text messaging abbreviations to English based on the given requirements follow these steps Stepbystep Solut... View full answer
Get step-by-step solutions from verified subject matter experts
