In this unit, students learn to write reusable code with functions and parameters.
Functions and Parameters
Lessons:
Functions & Parameters 1
Functions & Parameters 2
Functions & Return Values 1
Functions & Return Values 2
CRD-2.C.6 AAP-3.A.3 CRD-2.D.2 AAP-3.A.4 CRD-2.B.3 AAP-3.B.5 CRD-2.C.4 AAP-3.C.1 AAP-3.A.1 AAP-3.C.2 AAP-3.A.2 AAP-2.M.2
User and Application Input
Program Output
Procedures
Parameters
Return Values
Using Existing Algorithms
Example Activities and Big Idea/Computational Thinking Practice
Pool Table: Students write a program with a function that draws a pool ball. This function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. Students need to consider the function abstractly as a means for taking specific data via the parameters and creating a unique graphical output based on those inputs.
[Big Idea DAT][Computational Thinking Practice 3]