Activity 01
Pair Challenge: Function Builder
Pairs receive a task like drawing a house; they write separate functions for walls, roof, and door, then combine them. Test by calling functions with different parameters. Discuss how changes in one function affect the whole without rewriting.
Construct a program that utilizes custom functions to perform specific tasks.
Facilitation TipDuring Pair Challenge: Function Builder, circulate to listen for students describing the purpose of each function block before they test it.
What to look forPresent students with a simple program without functions that performs a repetitive task. Ask them to identify the repeated code and then rewrite a section of the program using a custom function, explaining their choices.