CIS 170C iLab 4 of 7 Functions (100% Correct) CIS 170C iLab 4 of 7 Functions (100% Correct) | Page 8

If ToDigit returns -1, return -1 If digit 4 is not a hyphen, return -4. If digit 1 is 0, return -2. If digits 1 - 3 are 5, return -3 Otherwise, return 0 ToDigit function Convert the digit to upper case Use a switch statement to determine if the digit is valid and convert the letters to digits If the digit is invalid, return -1. If the digit is valid, return 0. AcknowledgeCall function Display the Phone Number. Step 3: Create a New Project Create a new project and name it LAB4. Write your code using the processing logic in Step 2 (above). Make sure that you save your program. Step 4: Compile and Execute a) Compile your program. Eliminate all the syntax errors. b) Build your program and verify the results of the program. Make corrections to the program logic, if necessary, until the results of the program execution are what you expect.