Contents

Instructions

This lab is focused on learning to use functions by revamping Lab 5. You will add functions to your Lab 5 code. Recall that in Lab 5 you wrote a program to act as a digital Rolodex. Copy your Lab5 code to a file called lab7.cpp and modify it to include three new functions (that's four including main). One of your functions should be one called startRolodex, which should contain most of the code you had in main before, and invoke that function from mainmain should only include that invocation and its return 0; line. You need to come up with at least two additional functions. At least one function needs to return a value (i.e., be non-void) and at least one function needs to take one or more pass-by-reference parameters. Be sure to pick functions that are either modular (groups code that hangs well together and performs some specific task) or improve reusability (code that gets used in more than one place), or both.

Submission

Submit your lab7.cpp file to here. You can view the rubric here.

(Back to top)