Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this lab, write a program that prompts the user to enter a phone number as a string. The input number may contain letters. The

For this lab, write a 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. You must use at least on function to complete this programming assignment.

Example execution:

$ ./phonePad.out

Enter a string : 1-800-FLOWERS

1-800-3569377

Want to process another phone? y=yes, n=no : y

Enter a string : 1800flowers

18003569377

Want to process another phone? y=yes, n=no : y

Enter a string : 1-800-GOTJUNK

1-800-4685865

Want to process another phone? y=yes, n=no : n

Have a nice day!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago