Lesson 3: Computation by accumulation
Outline:
- Recap Lesson 2
- Accumulator pattern (practice with
for
loops!)- multiplication
- fish population
- Exercises 1-3
Explore after class:
- The
math
library - Read Zelle Ch. 3 on
int
s andfloat
s- basic operations on
int
s andfloat
s - type conversions
- basic operations on
- Exercise 4
Reading assignment (to be completed by the next class):
- Zelle chapter 3 (pp. 57-76)