Lesson 9

Coin Counting Algorithms

Students will use the Bee-Bot to create multiple programs that each result in the same sum of money. They will need to decompose the amount into different coin groupings, then navigate the Bee-Bot from one coin to the next. Students will utilize a planning worksheet instead of command cards to plan for these challenges.

Agenda

  1. Ask: How did your team decompose a problem last class?
  2. Review: Bee-Bot Team Roles (optional)
  3. Activity: Coin Counting Algorithms
  4. Reflection & Close-Out:
    • When you wrote 2 programs for the same amount of money, did one program work better? Why?
    • What is important to do to write a good program for your Bee-Bot? What makes it a good program?

Materials

Vocabulary

debug: find and fix errors (bugs) in programs

decomposition: breaking down a problem into smaller pieces

program: a set of instructions written in a language that a computer understands

sequence: a set of instructions that follow one another in order

Additional Resources

Standards

CA CSS: K-2.AP.12 Create programs with sequences of commands and simple loops, to express ideas or address a problem.

CA CSS: K-2.AP.13 Decompose the steps needed to solve a problem into a sequence of instructions.

CA CSS: K-2.AP.14 Develop plans that describe a program's sequence of events, goals, and expected outcomes.

CA CSS: K-2.AP.16 Debug errors in an algorithm or program that includes sequences and simple loops.