Session Details
Week 3,
Session 9 — Thu Dec 17
Reading
-
Chapter 6
(28 pages)
HW Due
-
HW 8
Topics
-
Exam topics
-
Creating simple functions
-
Passing values to functions, returning values
-
Functions calling other functions.
-
Optional parameters
-
Mutation of parameters
-
More on debugging
Outline
-
[ 5 min] Point out topics for Exam #1
-
[ 5 min] Optional parameters
-
[10 min] Parameter Passing (changing parameter values)
-
[30 min] Three Squares exercise
Take a break in the middle of this or when you are done.
-
[30 min] Nested function calls and execution order (includes code-reading exercise)
-
[20] Begin homework
-
// Pizza, Poly as functions. // Circle of Circles.
Functions and parameters
HW Assigned
-
HW 9