You are on page 1of 5

Do Now

In Alice, make a character walk in a square. When youre done, raise your hand and show me.

If youre done: What objects are involved in this scene? What actions do they do in order? A skater turns towards a cone, skates toward it, and then skates around it twice. After the first spin, she raises her leg.

Object oriented programming


A programming paradigm that centers around data structures called objects that have properties and methods. Example: Ice Skater properties: body type skate color race/ethnicity costume color methods: jump balance on one leg move (skate)

A skater turns towards a cone, moves to it, and then skates around it twice. After the first spin, she raises her leg.
Objects: Ice Skater -> leg cone World -> ice Algorithm: 1. Ice skater -> turn (depending on where the cone is) 2. Ice skater -> moves forward (dpending on where the cone is) 3. Ice skater-> skates around the cone once 4. Ice Skater Leg -> Raise 5. Ice skater -> skate around the cone once

Parameter
The extra information the programmer needs to give to a method in order to make it work. Example: turn method needs to know the location of the cone

In your notes, identify the objects and methods needed to implement this story in the correct order:

A lunar module is on the rocky surface of the moon. A robot from the lunar module is exploring the surface of the moon. An alien comes wandering by. At the same time, the robot and alien look at each other. The robot says Houston, we have a problem, and the alien says EEEEK. The alien turns and runs away, and the robot turns and moves back to the lunar module.

You might also like