AP CSP CodeX - Algorithms Lesson 1
Algorithms Lesson 1
Students follow sequential robot code on a grid and decide which algorithm gets the robot to the right result.
Overview
This is an unplugged lesson, so students do not use computers. Working in partners or groups of three, students follow robot code made only of sequential statements and work out where the robot ends up on a grid. The AP CSP multiple choice exam includes questions about robot code, and this first lesson introduces how to read it. Students work through seven code segments in the Activity Guide, choosing the algorithms that get the robot to the correct result.
π― Mission Goal: Students will determine the result of code segments.
Learning Targets
- I can follow sequential code to control a robot.
- I can evaluate multiple algorithms to determine which one leads to the correct result.
- I can evaluate multiple algorithms to determine if they yield the same result.
Key Concepts
- The AP CSP multiple choice exam will have questions that involve robot code. This first assignment introduces students to robot code using only sequential algorithms.
- Students can make a little paper robot and label left and right to help them evaluate the code.
Assessment Opportunities
- Algorithms Lesson 1 Activity Guide
- Students compare their answers with each other and an answer key
- Daily reflection journal or Google Form, class discussion, or exit ticket
Success Criteria
- Evaluate sequential segments of robot code
- Select algorithms that accomplish the task
Digital Resources
Classroom Materials
- βΈPrinted Activity Guide (one per group)
- βΈPencil
- βΈPaper to make a little paper robot
- βΈOptional: sheets of paper to use as grid squares on the floor
Real-World Applications
Humans follow and use algorithms every day. Examples are:
Extensions & Cross-Curricular
π€
Vocabulary
βΎ
π
Standards
βΎ
CSTA Standards - Grades 9-10
CSTA Standards - Grades 11-12
AP CSP Framework
- Print the Activity Guide for each group. This lesson works better on paper than on a computer.
- You may want students to take notes, or give them a handout with the instructions on it for reference.
- Have paper ready for students to make a little paper robot and label its left and right.
- This lesson is best with partners or in groups of three.
- This lesson is better on paper than digitally. Print the assignment for each group.
- An alternative to doing this activity on paper is to give students sheets of paper to use as squares on a grid. Lay out the squares on the floor and have one student be the robot and another student read the code. Physical activity is an excellent way to engage students and stimulate learning.
- Students do not need a computer for this lesson.
Lesson Outline
This outline gives one way to present the lesson.
Slide 2: Start with a review of the term "algorithm". Have students share their definitions.
Slides 3-4: Algorithms are covered on the AP CSP exam. The information on slide 3 comes straight from College Board.
π» Slides 5-9: Go over the instructions for the activity, and complete an example. This is part of the whole-class instructions. It is not included in the Activity Guide.
Students do not need a computer for this activity; it is unplugged. Students work through the seven code segments in the Activity Guide.
β The Activity Guide is complete and ready to turn in.
β Formative assessment:
- Students compare their answers with each other and an answer key. You can require students to rework any missed problems.
- Daily reflection journal or Google Form
- Class discussion on what they learned during the activity
- Exit ticket