/Open-Lab-04.04

(15 XP) A function that formats an integer array into a phone number.

Primary LanguageC#MIT LicenseMIT

Open-Lab-04.04

(15 XP) A function that formats an integer array into a phone number.

  1. Fork this repository to your GitHub account.
  2. Open solution file in Visual Studio.
  3. Open file PhoneNumbers.cs.
  4. Implement the method FormatPhoneNumber(int[] numbers) that takes an array of 10 integers and formats them into a phone number.
  5. Run with CTRL+F5 to test it.
  6. If all tests are passed, commit & sync your repository.
  7. Send a link to your repository for Lab Master (in #slack) to check it.

Examples:

FormatPhoneNumber(new int[]{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 })"(123) 456-7890"
FormatPhoneNumber(new int[]{ 5, 1, 9, 5, 5, 5, 4, 4, 6, 8 })"(519) 555-4468"
FormatPhoneNumber(new int[]{ 3, 4, 5, 5, 0, 1, 2, 5, 2, 7 })"(345) 501-2527"