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 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. andre was recently hired by an organization to check for system vulnerabilities. he is supposed to exploit these vulnerabilities and create a report on the extent of damage to which the system was susceptible. what position does andre hold in this organization? a. information security analyst b. information assurance manager c. penetration tester d. network security engineer e. chief information security officer
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
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
Biology, 13.12.2019 04:31
question
Mathematics, 13.12.2019 04:31