1 of 15

Coding Unplugged:

Cup Coding

2 of 15

2

3 of 15

Algorithm

A set of rules that a computer uses to complete a task or solve a problem

4 of 15

Bug

Part of a program that does not work correctly

5 of 15

Debugging

Finding and fixing problems in an algorithm or program

6 of 15

Program

An algorithm that has been coded into something that can be run by a machine

7 of 15

Programmer Rules

  • Programmers have to write their code down FIRST while the robot isn’t looking
  • Programmers are not allowed to talk when the robot is working - they should be checking their code, looking for bugs
  • Programmers should raise their hand if they see a bug or nicely say “Robot Freeze”

7

8 of 15

Robot Rules

  • UP means that the cup goes up as high as it needs to
  • DOWN means that it goes down until it lands on something and the hand goes back to the cup stack
  • FORWARD means the robot moves one step forward (½ cup width)
  • BACKWARD means the robot moves one step backward (½ cup width)

8

9 of 15

10 of 15

What would the code look like for this stack?

10

11 of 15

11

12 of 15

12

13 of 15

What do we need to do to be successful?

14 of 15

How did you work together?

15 of 15

How were you problem solvers?