Problem

Write a program asking a user to enter a phone number in the following format: (999)999-99...

Write a program asking a user to enter a phone number in the following format: (999)999-9999. In other words: an area code in parentheses, a three-digit number, a dash, and a four-digit number.

» Display a message if the phone number is entered incorrectly.

» Display the phone number as a series of 10 digits, with all other punctuation removed.

» Assume area code 920 is being changed to 899. If the entered number is in area code 920, redisplay it with the new area code.

Save the file as PhoneNumber.cpp.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT