Question: c++ Write a function that receives a phone number in any of the formats in the original data and returns a phone number in the

c++ Write a function that receives a phone number in any of the formats in the

original data and returns a phone number in the specified format. The

phone number is to use "." as the separator. It can either be a 7-digit or

10-digit number. Here is an example the specified format.

893.3464

564.893.3464

In the original data,the phone numbers can be in any of the following formats.

None of the original phone numbers are in any other format than the ones

listed below.

893-3464

564-893-3464

8933464

5648933464

893.3464

564.893.3464

(564)893-3464

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!