LESSON 1: MY ROBOTIC FRIENDS
It does, but not the same way that a person does. Robots operate off of "instructions", specific sets of things that they have been programmed to do. In order to accomplish a task, a robot needs to have a series of instructions, called an algorithm, that it can run.
Now, you are going to learn how this happens. First, you will watch a brief video about the activity at Code.org.
Follow the instructions below:
algorithm: a list of steps to finish a task
bug: part of a program that does not work correctly
coding: writing commands or actions as symbols
debugging: finding and fixing problems in code
function: a piece of code that can be called over and over
parameters: extra bits of information that you can pass into a function to customize it
program: an algorithm that has been coded into something that can be run by a machine
In this activity, you will use the symbol key below to instruct a robot to build a cup tower in a specific way. Each group will work together in this activity.
- Choose one person in your group to be the Robot.
- All Robots will go the Typing Center and practice the typing activity.
- The remaining group members are the programmers.
- The programmers will receive an image.
- The programmers will create an algorithm for how the Robot should build the image.
- The programmers will translate their algorithm into code by using the symbols pictured above.
- When the programmers have finished coding their image, one programmer will go get their Robot from the Typing Center.
- The Robot reads the symbols and performs the movements that the symbols command.
- The programmers watch the Robot and make notes of incorrect movements.
- The programmers can choose the halt the program and send the Robot back to the Typing Center to debug the program right then or the group can take notes, allow the whole program to run, and then send the Robot back to the Typing Center while they debug the program.
- If the Robot does not build the structure properly, the programmers will work to debug the program. Ask yourselves, did the Robot read the command incorrectly? Did we write an incorrect command?
- When the programmers have finished debugging the program, the Robot will re-run it.
Let's do an example to make sure you understand the activity. Look at the image below. Let's code how to create this image together.
You can follow along on the slideshow below if you like.
If there is time left in the lesson, the Robot from the group can come and change out their card and choose one of the others to be the Robot for this program. When I call time, everyone needs to stop and give me their attention.
So, did you accomplish the Lesson Mission Today? Let's find out. Click on the icon below to do the Robot Friends Challenge.