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 link to the online
documentation for the GNU Pascal compiler (since you will be using the GNU
Pascal compiler 'gpc'). You may also be interested in browsing the rest
of the site as well.
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.