Since chapter 3 in the text is fairly long, we have provided two lab exercises for it: 3a and 3b. In exercise 3a, students build a separately compiled library of metric conversion functions (simple, but useful). In exercise 3b, students learn to build more complicated functions that require selective and repetitive behavior. We have our students do both exercises, 3a one week and 3b the next.
Using a user-defined, separately compiled library with a program changes translation to a multi-step process:
We provide "starter" files in the exercise for each of the components in the lab exercise: driver.cpp, metric.h, metric.cpp, and metric.doc. If you wish to avoid network contention and traffic, save all of these files ahead of time in a 3a folder of your course folder, and instruct your students to copy them from there.
Forward to the Prelab Questions