Question: python Many companies often advertise their phone numbers as alphanumeric numbers which are easier to remember. These numbers are often 10 digits and have a

python python Many companies often advertise their phone numbers as alphanumeric numbers which

Many companies often advertise their phone numbers as alphanumeric numbers which are easier to remember. These numbers are often 10 digits and have a format XXXXXXXXXX. For e.g., 800-DIAL-PIZZA (800342574992). Write a program that converts an alphanumeric number to its equivalent numeric phone number. Your program should: 1. Ask the user to input a telephone number in XXXXXX XXXX format. You don't need to check for the length or the format for the user input. Assume the user will type the numbers in the correct format. 2. Convert the alphanumeric number to numbers using the following table for reference while converting: Use only the topics we have covered in the class so far. A sample output is shown below: Sample Run Please enter a number in XXXXXXXXXX format: 888 -BUY-BEST Your converted number is: 888-289-2378

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!