You are on page 1of 8

SAMPLE

// 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!

Copy, paste, and edit any items you need on


the work space

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.

● Once they’ve finished, check to see if the drawing is as expected.

● 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!

Legnth Draw 2 vertical lines


drawhouse Lengt width
h

Manipulatives
edit edit ME! Timeswidth
edit ME! edit ME!
ME! Draw 2 perpendicular lines

Copy, paste, and edit any items you need on


the work space

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

Copy, paste, and edit any lines


you need on the grid
Use dot on the ends of the lines
to shorten, lengthen, and rotate.
Draw house 2 from partner here

Copy, paste, and edit any lines


you need on the grid
Use dot on the ends of the lines
to shorten, lengthen, and rotate.
Challenge #2: Create a cost calculator function for building the house you created a function for earlier. Use 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. Create a cost calculator.

○ 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!

Length - draws a line verticals


Width- draws 2 lines horrizontal
LxW - draws the roof and the door

BuildHouse Lenth width

Manipulatives

edit ME! edit ME! edit edit ME!


ME!

Copy, paste, and edit any


items you need on the work
edit Partner
“returns” this
space ME! sticky note

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"

You might also like