Question: Programing Assignment: Keypad Texting ABC DEF 1 23 GHI JKL MNO 56 4 PORS 7 TUV WXYZ 8 | 9 * 0# On some basic

 Programing Assignment: Keypad Texting ABC DEF 1 23 GHI JKL MNO

Programing Assignment: Keypad Texting ABC DEF 1 23 GHI JKL MNO 56 4 PORS 7 TUV WXYZ 8 | 9 * 0# 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, or 4 times generates the second third, or forth character listed for that key, followed by a pause after each character. For example, if you want to send "hi", you need to press 44 444. For space, the user can press one 0. 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. Ensure that your program handles both uppercase and lowercase letters. Ignore any characters that aren't listed in the figure above, such as semicolons and fullstops. For example, if the user enters a string "Hello, World!" then your program should output: 44 33 555 555 666 0 9 666 777 555 3 Which is "hello world". Comma (,) and exclamation mark (!) in the string are ignored

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!