Contents

Instructions

This lab is focused on learning to use function and has two parts. The first is to revamping Lab 5, the second is to work on PA2.3 which involves implementing the function stubs you submitted for PA2.2.

Part 1: Revamping Lab 5

In this part of this lab, 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. 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.

Part 2: Work on PA2.3

Start implementing the function stubs you submitted for your PA2.2.

Submission

Submit your lab7.cpp file and what you have implemented of your PA2.3 to here. You can view the rubric here.

(Back to top)