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
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
Get step-by-step solutions from verified subject matter experts
