Session Details

Week 3, Session 8 — Thu Dec 15

Prep

  1. Chapter 7 (26 pages)

HW Due

  1. HW 7

Topics

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

Outline

  1. [10 min] Questions
  2. [20 min] Use the debugger to step through a program execution and examine variables.
  3. [10 min] Intro. to if statements
  4. [ 5 min] Comparison, including experimenting with strings
  5. [10 min] if-else statements
  6. [10 min] Nesting vs. if-elif-else statements
  7. [40 min] countPassFail exercise, HW 8

Resources

  1. Slides

HW Assigned

  1. HW 8