Lecture notes for the Introduction to Computer Science I by James Tam Return to the course web page

Homogeneous Composite Types Of Variables: One Dimensional Arrays

Notes for the required material 

Optional teaching material

Given that there is time (and if the teaching language provides such an option) it would be beneficial for the instructor to spend time with a specific type of array: the String.   In most programming languages a String is a type and consequently many useful utilities are provided (string operations such as concatenation, string comparisons etc.).  Another area that can be covered if there is sufficient time is the topic of packed arrays and how they can be used to more efficiently utilize memory but at the cost of increasing computation time (to find the correct index).

Background / Sources of additional information

Teaching Tips