Session Details

Week 4, Session 10 — Mon Jan 4

Reading

  1. Chapter 7
    (26 pages)

HW Due

  1. HW 9
    Quiz and Programs due on Thursday

Topics

  1. Decision structures (if statements)
  2. Boolean constants and variables (a.k.a. flags)
  3. Boolean operators: and, or, not

Outline

  1. [15 min] Hand-back quizzes, discuss questions (questions about exam?)
  2. [10 min] Debugging programs that call functions (step into, examine call stack)
  3. [ 5 min] Intro. to if statements
  4. [ 5 min] Comparison, including experimenting with strings
  5. [ 5 min] if-else statements
  6. [10 min] Nesting vs. if-elif-else statements
  7. [5 min] Break
  8. [25 min] countPassFail exercise
  9. [25 min] Get started on HW10

Decisions

HW Assigned

  1. HW 10