Lab 9: Instructor's Notes
This lab exercise deals with I/O using files and streams. How a program
opens a stream to a file can be a bit complicated with some versions of C++ and/or operating systems. So you may have to supplement the material here with
specifics about how files are opened, read, written, closed, ... with
your system.
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 above, they may, alternatively, be used as
"postlab" exercises that test how well the students understood the lab
exercise.
- The lab home page
- Here is file-processing project used by
the author for a programming project dealing with file processing. It
involves reading time, temperature, pressure, and volume readings from
a file, displaying these readings in a nice table format and displaying
the maximum and minimum of the temperatures, pressures, and volumes.
Here is a grade sheet for this project.
- 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)