CSP U7l01 Digital Manipulatives
CSP U7l01 Digital Manipulatives
CSP U7l01 Digital Manipulatives
// edit ME!
Use this slide to follow Work Space
along with the video
edit ME!
makeCake
edit ME! 2
2 Egg
makeCake
Manipulatives
edit edit ME!
ME!
To copy an object, click on it, then on your keyboard hold down "Command (or
Ctrl)" and click "C". Then move your cursor to the Work Space and on your
keyboard hold down "Command (or Ctrl)" and click "V"
Challenge #1: Time to create your own function with parameters! Using the next slide
● Create a function envelope. Put the name of the function on the envelope.
● Write your function. It can be written in pseudocode. Describe how to draw a simple house on graph paper.
○ Think about the parameters. How could your function be used to draw different types or sizes of houses? Give each parameter a
unique name.(like tiers and flavor from the makeCake example)
○ You can have as many parameters as you want. When the parameter is referenced in the function, put a box around it to draw
attention.
○ Put the function inside the envelope.
● Turn to the front of the envelope. Put boxes on the envelope for each parameter and put the name of the parameter in the box.
● Choose arguments for each parameter. Write them on small sticky notes and stick them in the correct boxes on the envelope.
● Share your slides with a partner. The partner will draw the house following the instructions in the function, using the parameters.
● Choose new arguments. Replace the old ones on the envelope with the new ones and “call” the function again by passing it to a partner.
The partner then draws the new house. Copy and paste slide 3 then update the arguments on the new slide.
// edit ME!
Challenge #1 Work Space
Lenth width
drawSquare
edit ME!
Manipulatives
edit edit ME! Timeswidth
edit ME! edit ME!
ME! Draw 2 perpendicular lines
To copy an object, click on it, then on your keyboard hold down "Command (or
Ctrl)" and click "C". Then move your cursor to the Work Space and on your
keyboard hold down "Command (or Ctrl)" and click "V"
Draw house 1 from partner here
● Create a function envelope. Put the name of the function on the envelope.
○ Think about the parameters. How would these impact the cost?
○ Add a return at the end of your function that returns the total cost.
● Turn to the front of the envelope. Put boxes on the envelope for each parameter and put the name of the parameter in the box.
● Choose arguments for each parameter. Write them on small sticky notes and stick them in the correct boxes on the envelope.
● Share your slides with a partner. The partner will calculate the cost of building the house using the parameters.
● Once they’ve finished, the partner should pass back or return a sticky note with the value of the total cost.
● Then choose new arguments. Replace the old ones on the envelope with the new ones and “call” the function again by passing it to a
partner. The partner will now run the calculations again and complete the return. Partners should check to see if the return value is
correct! Copy and paste slide 7 then update the arguments on the new slide.
// edit ME!
Challenge #2 Work Space
edit ME!
Manipulatives
To copy an object, click on it, then on your keyboard hold down "Command (or
Ctrl)" and click "C". Then move your cursor to the Work Space and on your
keyboard hold down "Command (or Ctrl)" and click "V"