Session Details
Week 3,
Session 9 — Tue Sep 21
Reading
-
Chapter 6
(26 pages)
HW Due
-
HW 8
Quiz due Tuesday as usual; rest due Wednesday (as usual for homework assigned on Mondays)
Topics
-
Review Functions: Defining, calling, returning values.
-
Optional parameters
-
Returning more than one value from a function
-
Mutators — Mutation of parameters
-
Practice, including debugging
Outline
-
[ 5 min] Hand back quizzes and answer student questions.
-
[ 5 min] Optional parameters
-
[15 min] Parameter Passing (changing parameter values)
-
[30 min] Three Squares exercise
Take a break in the middle of this or when you are done.
-
[50 min] triangles (more function practice) and other homework.
Resources
-
Slides More on Functions
HW Assigned
-
HW 9