Week 8 - Arrays
Learning objectives
Upon finishing this learning module, you should be able to:
- Write programs using arrays to store collections of related information
- Design and write code using multidimensional arrays
Schedule
Day 1
- Array Uses
- Read Ch 7.4
- Finish CPPLab Arrays
Day 2
- Arrays & Functions
- Read Ch7.5-7.8
- CPPLab Arrays 2
Day 3
- Multidimensional arrays
- Read Ch 8.1-8.4
- CPPLab Multidimensional arrays
Day 4
- Multidimensional arrays continued
- Read Ch 8.6-8.8.1
Activity Outline
Watch the video below and then read Ch 7.4 for various examples of using arrays.
Read 7.5-7.8. This video shows some important details of how arrays work with functions and how to use QtCreator to debug arrays in functions:
Do the CPPLab Array Functions.
Start the assignment - you can work on it in parallel with this next part.
Multidimensional Arrays
Read Ch 8.1-8.4
This video has some background on why 2D arrays behave the way they
do and how to use the debugger on them in QtCreator:
Do the CPPLab Multidimensional Arrays.
Multidimensional Arrays Continued
Read Ch 8.5-8.8.1
This video talks through some of the interesting things in the sample programs from those sections, as well as some things that could be improved in them.
Extra Info
Optional extra
Watch this video about how matrices (2D arrays) are used to handle transformations in computer graphics.