Lab 6: Instructor's Notes
This is a first "serious" look at classes — the string
class, in particular — and probably the first look at them for some
(perhaps most) students, even if they've already done some progamming in the
past. For this reason, the author has used the Prelab questions as "Test
Yourself" questions assigned to be done after the lab exercise and handed in.
The lab studies strings in the context of developing a preliminary
version of a Pig-Latin to English translator. One of the homework problems
continues this development and you may want to consider assigning it.
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
- The first programming project
extends the pig-latin translator begun in the lab exercise. Two of the
other string-processing programming projects deal with encryption schemes
and another is a palindrome checker.
- A gradesheet
used by the author for the project assigned.
Report errors to Larry Nyhoff (nyhl@cs.calvin.edu)