DEVRY CIS 170 C iLab 4 of 7 Functions

DEVRY CIS 170 C iLab 4 of 7 Functions

DEVRY CIS 170 C iLab 4 of 7 Functions

Check this A+ tutorial guideline at

http://www.assignmentcloud.com/cis-170/cis-170-c-ilab-4-of-7-functions

For more classes visit
http://www.assignmentcloud.com

CIS 170 C iLab 4 of 7 Functions
Lab # CIS CIS170C-A4 Lab 4 of 7: Functions Lab Overview – Scenario/Summary
You will code, build, and execute a program that simulates the dialing of a phone using functions.
Learning outcomes:
Distinguish between pass by value and by reference. Call functions using &. Write functions using value and reference. Be able to define and use global named constants. Be able to debug a program with syntax and logic errors. Be able to use the debug step-into feature to step through the logic of the program and to see how the variables change values.Deliverables
Section
Deliverable
Points
Lab 4
Step 5: Program Listing and Output
45
Lab Steps
Preparation:
If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home.
Locate the Visual Studio 2010 icon and launch the application.
Lab:
Step 1: Requirements: Phone-Dialing Program
Write a program that simulates the dialing of a phone number.
A user will input an 8-place number, for example: UN9-3177 (note that the hyphen is considered a digit).
The rules for entering phone numbers follow.
8 places It may have numbers, letters, or both. The phone number cannot begin with 555. The phone number cannot begin with 0. The hyphen must be in the 4th position. No other characters (@#$%^&*()_+=\|/>
If all of the rules are met, you will output a message to the console that reads like the following.
Phone Number Dialed: UN9-3177 *the number entered
If all of the rules are not met, then you output one of the following error messages to the console.
ERROR - Phone number cannot begin with 555 ERROR - Phone number cannot begin with 0 ERROR - Hyphen is not in the correct position ERROR - An invalid character was entered
It will then...

Similar Essays