Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Step: 3

blur-text-image

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions