Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 late

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions