Session Details

Week 3, Session 9 — Thu Dec 17

Reading

  1. Chapter 6
    (28 pages)

HW Due

  1. HW 8

Topics

  1. Exam topics
  2. Creating simple functions
  3. Passing values to functions, returning values
  4. Functions calling other functions.
  5. Optional parameters
  6. Mutation of parameters
  7. More on debugging

Outline

  1. [ 5 min] Point out topics for Exam #1
  2. [ 5 min] Optional parameters
  3. [10 min] Parameter Passing (changing parameter values)
  4. [30 min] Three Squares exercise
    Take a break in the middle of this or when you are done.
  5. [30 min] Nested function calls and execution order (includes code-reading exercise)
  6. [20] Begin homework
  7. // Pizza, Poly as functions. // Circle of Circles.

Functions and parameters

HW Assigned

  1. HW 9