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
Recommended Schedule
Day 1
- Finish Arrays
- Arrays & Functions
- Finish CPP Lab Arrays
- CPP Lab Arrays 2
- Check out assignment
Day 2
- Start Multidimensional arrays
- Optional - start CPP Lab Multidimensional arrays?
Day 3
- Wrap up multidimensional arrays
- Finish CPP Lab Multidimensional arrays
Day 4
- Review for and take quiz 3
- Do assignment
Arrays Intro
Read Ch 7.1-7.2. These videos cover some of the important (and sometimes unmentioned) details.
Watch the video below and then read Ch 7.4 for various examples of using arrays.
Arrays and Functions
Read 7.5-7.8. This video shows some important details of how arrays work with functions and how to use VSCode to debug arrays in functions:
Do the CPP Lab Array Functions.
VSCode Debugging Tips For Arrays
Start the assignment - you can work on it in parallel with this next part.
Multidimensional Arrays
Read Ch 8.1-8.4 These videos cover the basics and explain why they work the way they do:
Start the CPP Lab Multidimensional Arrays.
Multidimensional Arrays Continued
Read Ch 8.5-8.8.1. Focus on the ideas of each program and how they use 2D arrays. Don't try to memorize the details.
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.
Finish the CPP Lab Multidimensional Arrays CPPLab.
Extra Info
Optional extra
Watch this video about how matrices (2D arrays) are used to handle transformations in computer graphics.