• CS 111.02 - Spring 2024

  • Schedule
  • Assignments
  • Project
  • About

Lesson 3: Computation by accumulation

29 March, 2024

Outline:

  1. Recap Lesson 2
    • Exercise 1
  2. Repetition via for loops
    • Exercise 2
  3. Accumulator pattern (practice with for loops!)
    • multiplication

Explore after class:

  1. More accumulator patterns
    • growing flowers (see slack)
    • Exercises 3+4
  2. The math library

Reading assignment (to be completed by the next class):

  • Zelle chapter 3 (pp. 57-76)
  • Assignment #2 (due next Thursday at 10pm)