Hour of Math
Catalogue
Programming

Thinking in Steps: Algorithms, Flowcharts, Pseudocode

Decompose a task into ordered steps and represent it as a flowchart and as pseudocode.

  1. Sequencing a Familiar TaskBy the end you can decompose a familiar task into an ordered list of steps, explain why a particular pair of steps cannot be swapped, and use the word algorithm for what that ordered list actually is.
  2. Flowchart Symbols and Building FlowchartsBy the end you can name what each flowchart shape means, interpret a flowchart someone else drew, and build a flowchart for a familiar task and for your walking animation's up-arrow script.
  3. Writing PseudocodeBy the end you can write pseudocode for a task as a numbered list of exact steps, state a benefit of writing it before you build, and explain why a vague instruction causes problems that a precise one doesn't.
  4. Turning CornersBy the end you can turn Robo to face a new direction without moving it, and build a program that walks it around one or more corners to the flag.
  5. Plan It, Then Build ItBy the end you can write numbered pseudocode for a maze level before touching any blocks, then build it and use Robo's run to check whether your plan was exact enough.
  6. Gems and the Shortest WayBy the end you can build a program that collects every gem on a level and reaches the flag, in a tidy number of blocks.
  7. Do It AgainBy the end you can shorten a program by wrapping a repeated block in a repeat block, and state what repeat N does in your own words.
  8. Until You Get ThereBy the end you can build a program that reaches an unknown-length goal using repeat until goal, without counting the squares first.
  9. Unit ChallengeBy the end you will have shown you can build a maze program using everything this unit taught, plan it three ways, and say back what each part of the unit means.