These notes can be purchased in the Student Union Copy Center at cost
Functions and Procedures in Pascal (Leestma & Nyhoff Sections
7.6): [PowerPoint]
[Acrobat]
Optional teaching material
Background / Sources of additional information
Pascal Programming and Problem Solving by Leestma S. and Nyhoff L. 4th
Edition (MacMillan Publishing Company).
Pascal an Introduction to the Art and Science of Programming by Savitch
W.J. (The Benjamin / Cummings Publishing Co., Inc.).
The
Pascal link under the
GNU website (since the U of C Computer Science department uses the GNU Pascal
compiler gpc).
Teaching Tips
Recursion, along with pointers, is typically one of the topics that
students have the most trouble with in first year courses. In the case
of recursion the code is not only more complex but the concept itself is more
abstract. Consequently I have found it beneficial to first introduce
what recursion is by using non-programming examples first. When students
then have a bit of grasp of the self-defining nature of recursion I can then go faster when I
actually get to showing program code that is recursive.