Session Details
Week 4,
Session 10 — Mon Jan 4
Reading
-
Chapter 7
(26 pages)
HW Due
-
HW 9
Quiz and Programs due on Thursday
Topics
-
Decision structures (
if statements)
-
Boolean constants and variables (a.k.a. flags)
-
Boolean operators: and, or, not
Outline
-
[15 min] Hand-back quizzes, discuss questions (questions about exam?)
-
[10 min] Debugging programs that call functions (step into, examine call stack)
-
[ 5 min] Intro. to
if statements
-
[ 5 min] Comparison, including experimenting with strings
-
[ 5 min]
if-else statements
-
[10 min] Nesting vs.
if-elif-else statements
-
[5 min] Break
-
[25 min] countPassFail exercise
-
[25 min] Get started on HW10
Decisions
HW Assigned
-
HW 10