Lab 13: Instructor's Notes
The lab exercise asks the students to run some time
experiments There are a few things for you to do and consider:
- Try the experiments yourself to see how well the
clock()
function measures time on your system.
- You may want to change the number of iterations that each driver
spends running its tests.
- You may want to change the sample range of n.
- Students need to graph their timing results, and it is suggested
that a spreadsheet program be used for this. Make sure the
students have one available to them.
Here are:
- Prelab Questions designed to check if
students have read through the lab exercise in preparation for doing the lab exercise. However, as noted before, they could also be used as "postlab" exercises.
- The lab home page Note: I have not
used this lab exercise in my C++ programming course for engineers.
The number of class hours and term length simply prevented it. It is
essentially the same as a lab exercise prepared by Jeremy Frens for the
text C++: An Introduction to Computing — Third Edition
written by Joel Adams and myself.
- Other programming projects
from or in addition to those in the textbook that tie in with the material in
this lab exercise.
Also, A gradesheet
that might be used with one of these projects.
Report errors to Larry Nyhoff (nyhl@cs.calvin.edu)