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
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
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, 20.09.2019 19:30
question
Mathematics, 20.09.2019 19:30
Questions on the website: 13722362