1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
gladu [14]
3 years ago
6

Many companies use telephone numbers like 555-GET-Food so the number is easier for their customers to remember. On a standard te

lephone, the alphabetic letters are mapped to numbers in the following fashion:A, B, and C = 2D, E, and F = 3G, H, and I = 4J, K, and L = 5M, N, and O = 6P, Q, R, and S = 7T, U, and V = 8W, X, y, and Z = 9Write an application that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD the application should display 555-438-3663.
Computers and Technology
2 answers:
Alex73 [517]3 years ago
7 0

Answer:

555-bug-kill

Explanation:

The application would display

555-384-5455

timurjin [86]3 years ago
4 0

print("Given the following was entered from the keyboard"

                "\n555-GET-FOOD:\n555-438-3663")

phoneNum = input()

newPhoneNumber = ""

for char in phoneNum:

   if char == 'A' or char == 'B' or char == 'C':

       char = '2'

   elif char == 'D' or char == 'E' or char == 'F':

       char = '3'

   elif char == 'G' or char == 'H' or char == 'I':

       char = '4'

   elif char == 'J' or char == 'K' or char == 'L':

       char = '5'

   elif char == 'M' or char == 'N' or char == 'O':

       char = '6'

   elif char == 'P' or char == 'Q' or char == 'R' or char == 'S':

       char = '7'

   elif char == 'T' or char == 'U' or char == 'V':

       char = '8'

   elif char == 'W' or char == 'X' or char == 'Y' or char == 'Z':

       char = '9'

       

   newPhoneNumber = newPhoneNumber + char

print(newPhoneNumber)

You might be interested in
Bit stream methods commonly use algorithm functions like the exclusive or operation (__________.
Dmitry [639]
The answer that fits the blank is XOR or Exclusive OR. Exclusive OR is a logical operation wherein it demonstrates the logic presented by "either/or". This means that if the output given is true, either of the inputs, but never both, should also be true.
5 0
3 years ago
Zoom meeting ID:987 6858 5587 Password:196133
Llana [10]
I might join I’m not sure tho is there gonna be a lot of ppl?
3 0
3 years ago
Read 2 more answers
A simple C program to find the logarithm of any number in any base.....​
elena-s [515]

Answer:

tera bur mast hai jwjvszvVbzNjz

8 0
2 years ago
Transition words and phrase in a paragraph
balandron [24]

Answer:

Msms

Explanation:

8 0
3 years ago
Read 2 more answers
Which of the following is a hand-drawn animation that takes a large amount of time to complete?
elixir [45]

Answer:

Where are the choices?

Thanks for adding the choices at the comment secion

  1. 2D animation
  2. 3D animation
  3. Stop Motion  
  4. Celluloid animation

A- Celluloid Animation

4 0
3 years ago
Other questions:
  • Which of the following option is correct about HCatalog?
    14·1 answer
  • What three steps Name a group??
    14·1 answer
  • The type of database that is connected by a company's local area networks is a(n:
    11·1 answer
  • Which of the following is NOT a fall prevention system?
    12·2 answers
  • State the difference between = and ==
    9·1 answer
  • You are asked to write a program that prompts the user for the size of two integer arrays, user input for the size must not exce
    13·1 answer
  • What will the following program display in the console?
    12·1 answer
  • The web design teams of a company are working on designing websites for various companies, Pick the ideas that employ proper use
    13·1 answer
  • Project stem test 3 answers
    14·1 answer
  • How many 2/8 pound patties can she make from 7/8 of a pound of hamburger
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!