• CS 111.01 - Winter 2024
  • Schedule
  • Assignments
  • Project
  • About

Lesson 3: Computation by accumulation

8 January, 2024

Outline:

  1. Recap Lesson 2
  2. Accumulator pattern (practice with for loops!)
    • multiplication
    • fish population
  3. Exercises 1-3

Explore after class:

  1. The math library
  2. Read Zelle Ch. 3 on ints and floats
    • basic operations on ints and floats
    • type conversions
  3. Exercise 4

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

  • Zelle chapter 3 (pp. 57-76)