Homogeneous Composite Variables:
Arrays
Notes for the required material
- These notes can be purchased in the Student Union Copy Center at cost
- Arrays in Pascal (Leestma & Nyhoff, Single dimensional arrays Chapter 9.1, 9.2, you may also want to read through Section 9.3 for a larger
example that uses 1D arrays; Arrays of multiple dimensions 11.1, 11.2, you
may also want to read through Section 11.3 and 11.4 for additional examples
that employ multi-dimensional arrays): [PowerPoint] [Acrobat]
Optional teaching material
Given that there is time another topic that can be covered is packed arrays and how they
can be used to more efficiently utilize memory but at the cost of increasing
computation time (in order to find the correct index).
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