Week 9: Flow Control

Core Exam

Author

Prof. Jack Reilly

Published

Fall 2026

Due This Week: Core Exam (in class)

Lecture: Flow Control

πŸ’Ύ Slides on the Course Drive

Workshops

  • After lecture: work through the tenth self-paced workshop, which runs the lecture’s flow control on the GSS in the browser: if/else, a for loop that recodes (and what happens when it meets a missing value), while loops, Fibonacci and the golden ratio, and writing your own function with guardians, explicit and implicit returns, and default options.

Reference Material

  • Advanced Programming
    • FCSP, ch 4
    • RDS, ch 12-19, in particular, the chapters on functions and iteration. Much contained here is already duplicative of material we have previously covered (see: joins, missing values, etc), but much is new. As usual, use it as a reference, not as sit-down reading.

Due Next Week: Problem Set 8