Search Header Logo
2.4 Functions

2.4 Functions

Assessment

Presentation

•

Business

•

9th - 12th Grade

•

Practice Problem

•

Easy

Created by

N'jemele Bush

Used 1+ times

FREE Resource

10 Slides • 4 Questions

1

media

2

Open Ended

What is a function?

3

media

4

media

5

Open Ended

How do we go about creating functions in Karel?

6

media

7

media

8

media

9

media

10

media

11

media

12

Let's Practice

  • Students will define a function moveThreeSteps() that makes a Karel perform an action like moving three steps.

  • Then, they’ll call that function to execute a series of tasks. For example, they might call moveThreeSteps() in a sequence with other actions like turnAround() or pickUpObject().

13

Open Ended

In your own words, what does it mean to call and define a function?

14

Open Ended

Let's write a function called Movethreesteps.

Write pseudocode that allow Karel to move forward three times.

What would this look like?

Include how you would call this function.

pattern-tertiary
media

Show answer

Auto Play

Slide 1 / 14

SLIDE