1 of 10

Project: Create Your Own Function

@BootstrapWorld

2 of 10

Create Your Own Function

Use the Functions Starter File to complete the first section of the Sample Function Study.

3 of 10

Create Your Own Function

Turn and talk to a partner. One student will ask the questions on the following slide, and the other will answer. The student who is asking the questions should point to the line of code in Functions Starter File that the the question refers to.

4 of 10

Create Your Own Function

  • In the first example, how did we decide what number to use as the input for maroon-square?
  • How did we decide on the output for maroon-square?
  • How would we decide what to circle in the examples?
  • How did we decide on our function definition?

5 of 10

Create Your Own Function

For this project, we're going to create a function that takes in an image, and transforms that image at least three times. Let's look at a function like that!

Using the Functions Starter File, complete the second section of the Sample Function Study.

6 of 10

Create Your Own Function

  • What does the function sample do?
  • How are the maroon-square and sample alike? How are they different?

7 of 10

Create Your Own Function

Turn to Designing Your Function, where you will thinking about which functions you'd like your function to use.

8 of 10

Create Your Own Function

  • Turn to Coding Your Function (1).
  • Draw a Circle of Evaluation to represent the function you planned on Designing Your Function.
  • For your variable, you can just write "img".
  • When you are finished, swap papers with a partner and complete the Peer Review on the bottom half of Coding Your Function (1).

9 of 10

Create Your Own Function

Open My Function Starter File, which you will use to complete Coding Your Function (2).

10 of 10

Create Your Own Function

Before submitting your work, take some time students to self-assess and revise. The rubric is a useful resource for facilitating both self and / or peer review.