Overview
Learning Objectives
Evidence Statements
Product Outcomes
Materials
Pens/pencils for the students, fresh whiteboard markers for teachers
Class poster (List of rules, design recipe, course calendar)
Editing environment (Pyret Editor)
Student workbooks
Language Table
Preparation
Seating arrangements: ideally clusters of desks/tables
- In the last lesson you saw how piecewise functions work in Bootstrap:2, and learned about ask blocks, the Pyret syntax for writing them. To review, let’s go through the Design Recipe for a piecewise function.
Turn to Page 22 in your workbooks.
With your partner, fill out the Design Recipe for the function red-shape.
Optional: If you finish early, turn the page to Page 23 and fill out the Design Recipe for the strong-password function.Remind students that each ask statement must have a test and a result, and each function must contain an otherwise: statement, which will execute if every other test returns false.