Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The language used in here is Python. I really need some help for this. Thank you! You are to write a program that converts sentences
The language used in here is Python.
I really need some help for this. Thank you!
You are to write a program that converts sentences constructed using text message (SMS) s(into sentences using the proper King's English. Your program should be aware of the following SMS s(equivalences: Punctuation marks will mess up your program if you are not careful. You will need to check for punctuation, save the punctuation, perform the translation, and then put the punctuation mark hack. You can check if the last character of a word is a punctuation mark using: if word [- 1] in" .?!, ;:": print "The last character is a punctuation mark!!" The last character can be trimmed using the string.rstrip() method. Your program should take input from the user (written in SMS slang) and convert it into the King's English. Your program should make use of a dictionary. Show your completed program to the TA and demonstrate that it works. Example Output: Enter message to translate: y r u 18? Message in the King's English: why are you lateStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started