Session Details
Week 3,
Session 8 — Mon Sep 17
Prep
-
Chapter 7 (26 pages)
HW Due
-
HW 7
Topics
-
Using a Debugger
-
Decision structures (
if statements)
-
Boolean constants and variables (a.k.a. flags)
-
Boolean operators: and, or, not
Outline
-
[10 min] Questions
-
[20 min] Use the debugger to step through a program execution and examine variables.
-
[10 min] Intro. to
if statements
-
[ 5 min] Comparison, including experimenting with strings
-
[10 min]
if-else statements
-
[10 min] Nesting vs.
if-elif-else statements
-
[40 min] countPassFail exercise, HW 8
Resources
-
Slides
HW Assigned
-
HW 8