Must be completed in Python only Question 3: [Dictionary: Text Messaging] On some basic cell phones, text
Fantastic news! We've Found the answer you've been seeking!
Question:
Must be completed in Python only
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Managerial Decision Modeling with Spreadsheets
ISBN: 978-0136115830
3rd edition
Authors: Nagraj Balakrishnan, Barry Render, Jr. Ralph M. Stair
Posted Date:
Students also viewed these programming questions
-
Must be completed in PYTHON only
-
In this exercise you will create a program that identifies all of the words in a string entered by the user. Begin by writing a function that takes a string of text as its only parameter. Your...
-
Must be completed in PYTHON only Question 5: [File: Spell Checker] A spell checker can be a helpful tool for people who struggle to spell words correctly. In this exercise, you will write a program...
-
Prove that if a planetary orbit is circular of radius R, then vT = 2R, where v is the planets speed (constant by Exercise 7) and T is the period. Then use Keplers Third Law to prove that Data From...
-
Air is allowed to expand in a cylinder from 100 psia and 50F to 14.7 psia. Calculate the change in specific volume and specific internal energy for this process if the process is a) Isothermal, b)...
-
1. How successful is Karl in using his walk around to uncover useful information? 2. What can Karl do to increase his questioning effectiveness? 3. How can Karl increase his listening effectiveness?
-
Quilts R Us (QRU) is considering investing in a new patterning attachment with the cash flow profile shown in the table below. QRU's MARR is 13.5 percent/year. a. What is the internal rate of return...
-
Nguyen Company has the following stock outstanding: Common Stock Preferred Stock 60,000 shares ......5,000 shares $1 par value .......$60 par, $3 dividend The amount available for dividends this year...
-
A fluid that exists as a liquid at 1 atm and 25 C with a specific volume of 0.316 x10-2 cm^3/g. The volume expansivity term is found to be 3 = 1.28x10-3 [1/K]. While the isothermal compressibility is...
-
At December 31, Year 1, the accounting records of Braun Corporation contain the following items: Accounts Payable $ 18,000 Accounts Receivable $ 44,000 Land $ 244,000 Cash ? Capital Stock ? Equipment...
-
Forecasting German unemployment Let Ut denote the monthly levels of unemployment in Germany observed over time t=1,,T. You noticed that this time series looks non-stationary, so you decided to take...
-
23.14px Correct the error of subject-verb agreement by rewriting the sentence in the box below: I let the woman know that one of her boxes are open. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10...
-
Medicare is a government-funded health insurance program for retirees who are over the age of 65. Suppose that workers who continue to work past age 65 - and who are covered by an employer-provided...
-
Backus say learning about money in school is worthwhile. After Backus finished her financial-literacy class, she opened up a savings account at her local bank and started to think more about how she...
-
(a) A novice hunter becomes lost in a large open area, and he begins to call for help. The acoustic power level of his frantic voice is 98.6 dB at a frequency of 105 Hz. The ambient air is at 20C...
-
Consider the Modigliani and Miller world of corporate taxes. An unleveraged (all-equity) firm value is $80 million. By adding debt, the annual interest expense is $18 million, the corporate tax rate...
-
The unadjusted trial balance of Ben s Jewelers on December 3 1 , 2 0 X 1 . BEN S JEWELERS Trial Balance December 3 1 , 2 0 X 1 Cash $ 1 3 , 5 0 0 Dr . Accounts Receivable 5 0 , 3 5 0 Dr . Allowance...
-
Prove the result that the R 2 associated with a restricted least squares estimator is never larger than that associated with the unrestricted least squares estimator. Conclude that imposing...
-
A plant engineering group needs to set up an assembly line to produce a new product. The following table describes the relationships between the activities that need to be completed for this product...
-
The Decatur Fire Department makes annual door to-door solicitations for funds. Residents of each visited house are asked to contribute $15 (and receive a free family portrait package), $25 (and...
-
Sandy Edge is president of Edge File Works, a firm that manufactures two types of metal file cabinets. The demand for the two-drawer model is 650 cabinets per week; demand for the three- drawer...
-
Megan Murphy and Joseph McGoldrick began dating in July 2010 and eventually decided to marry. In late 2016, Megan and Joseph decided to purchase a home for \($205,000.\) Because Joseph had the...
-
In June 2014, Penn State Hershey Medical Center and PinnacleHealth System signed a letter of intent for a proposed merger. Hershey is located in Hershey, in Dauphin County in Pennsylvania and...
-
On October 20, 2020, the Department of Justice filed antitrust claims against Google, one of the biggest companies in the world. The DOJ alleged that Google unlawfully maintain[s] monopolies through...
Study smarter with the SolutionInn App