Question: 9 . 9 ( Telephone - Number Word Generator ) In Exercise 5 . 1 2 , you created a telephone - number word -

9.9(Telephone-Number Word Generator) In Exercise 5.12, you created a telephone-
number word-generator program. Modify that program to write its output to a text file. (7
points)
Hint:
use a list to store the codes, e.g., codes =['','', 'ABC', 'DEF', 'GHI', 'JKL',
'MNO', 'PRS', 'TUV', 'WXY'].
Start small: try to see if you can print all 9 combinations of 2 numbers. For
example, if the user enters 2 followed by 3, your code should printout the
following codes using several for loops:
A D
A E
A F
B D
B E
B F
C D
C E
C F

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 Programming Questions!