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 02:10
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
question
Computers and Technology, 22.06.2019 17:00
1. so if i wanted to build a linux server for web services(apache) with 1cpu and 2 gb of memory.-operating at 75% of memory capacity2. a windows server with 2 cpu/ 4gb memory- operating at 85% of memory capacity3. a storage server with 1 cpu/ 2gb memory- operating at 85% of memory capacityhow much memory do i have to add for each server.so that the utilization rate for both cpu and memory is at a baseline of 60%."the details for the cpu like its processor or the memory's speed isnt to be concerned" yeah i kept asking my teacher if he's even sure about the but the whole class seems to be confused and the project is due in 3 days..this is a virtualization project where i have to virtualize a typical server into an exsi hypervisor.
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
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
Mathematics, 10.03.2021 18:00
question
Mathematics, 10.03.2021 18:00
question
Mathematics, 10.03.2021 18:00
question
Chemistry, 10.03.2021 18:00
Questions on the website: 13722360