Question: I need help with the c++ program Many websites ask for phone numbers. The problem is that there are so many different ways to represent
I need help with the c++ program
Many websites ask for phone numbers. The problem is that there are so many different ways to represent a phone number. Examples include 817-555-1234, 817 555 1234 (c), and (817) 555-1234 x23. Write a Raptor program which inputs a string containing a phone number in any format and outputs it in the standard format. For this assignment, the standard format is (817) 555-1234. Your Raptor program should: Input a string including the number Copy only the digits from the input string into another string Issue an error message if the input string does not contain exactly 10 digits Output the phone number in standard format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
