Write a test program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (uppercase or lowercase) to a digit and leaves all...


In python


Write a test program that prompts the user to enter a<br>phone number as a string. The input number may contain<br>letters. The program translates a letter (uppercase or<br>lowercase) to a digit and leaves all other characters intact.<br>Here is a sample run of the program:<br>Enter a string: 1-800-Flowers Enter<br>1-800-3569377<br>Enter a string: 1800flowers -Enter<br>18003569377<br>

Extracted text: Write a test program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (uppercase or lowercase) to a digit and leaves all other characters intact. Here is a sample run of the program: Enter a string: 1-800-Flowers Enter 1-800-3569377 Enter a string: 1800flowers -Enter 18003569377

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here