Question: Use Visual Studio 2015 This extra credit application is a phone application that allows the user to enter a phone number in the following format:
Use Visual Studio 2015
This extra credit application is a phone application that allows the user to enter a phone number in the following format: 999-999-9999. It then displays the phone number either without hyphens or with the area code changed to 800.

You will be using the string.replace(old string,new string) method to replace hyphens with the empty string ;

For the 800 insert, you will need to create a 12 element character array with the initial value
{ '8','0','0',' ',' ',' ',' ',' ',' ',' ',' ',' '};
You will be using the CopyTo() method to replace the with the rest of the original string characters.
Then you would create the displace string with the characters from the character array.

Phone Number Enter Phone Number: Replace Hyphens 800
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
