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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started