Question: Must be completed in Python only Question 3: [Dictionary: Text Messaging] On some basic cell phones, text messages can be sent using the numeric keypad.

Must be completed in Python only

Question 3: [Dictionary: Text Messaging] On some basic cell phones, text messages

Question 3: [Dictionary: Text Messaging] On some basic cell phones, text messages can be sent using the numeric keypad. Because each key has multiple letters associated with it, multiple key presses are needed for most letters. Pressing the number once generates the first letter on the key. Pressing the number 2, 3, 4 or 5 times generates the second, third, fourth or fifth character listed for that key. Symbols ., ?!: ey 1 DEF 4 GHI JKL MNO PQRS 8 TUV WXYZ space Write a program that displays the key presses that must be made to enter a text message read from the user. Construct a dictionary that maps from each letter or symbol to the key presses. Then use the dictionary to generate and display the presses for the user's message. For example, if the user enters Hello, World! then your program should output 4433555555666110966677755531111. Ensure that your program handles both uppercase and lowercase letters. Ignore any characters that aren't listed in the table above such as semicolons and brackets. 23

Step by Step Solution

3.49 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we need to map each character to a sequence of keypresses based on the standar... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!