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.

Use Visual Studio 2015 This extra credit application is a phone application

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

that allows the user to enter a phone number in the following

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.

format: 999-999-9999. It then displays the phone number either without hyphens or

Phone Number Enter Phone Number: Replace Hyphens 800

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!