subject

Write a program that asks the user to enter a 10-character phone number in the format XXX-XXX-. The program should display the phone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 800-GOT-MILK this program would display 800-468-6455. Here is a sample run: Phone Number Translator Enter a phone number in the format XXX-XXX-: 800-GOT-MILK Dial: 800-468-6455 Notes: The purpose of this problem is to practice using strings, slicing, and dictionaries. Do not use loops or conditional branching Please make sure to submit a well-written program. Good identifier names, useful comments, and spacing will be some of the criteria that will be used when grading this assignment. This assignment can be and must be solved using only the materials that have been discussed in class. Do not look for alternative methods that have not been covered as part of this course. How your program will be graded:

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
George is working as a programming team lead. which statements correctly describe the skills that he requires?
Answers: 3
You know the right answer?
Write a program that asks the user to enter a 10-character phone number in the format XXX-XXX-. The...
Questions
question
Mathematics, 11.04.2021 19:00
question
Mathematics, 11.04.2021 19:00
question
Social Studies, 11.04.2021 19:00
question
English, 11.04.2021 19:10
question
Mathematics, 11.04.2021 19:10
question
Mathematics, 11.04.2021 19:10
Questions on the website: 13722367