Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Latest commit

 

History

History
59 lines (43 loc) · 3.11 KB

File metadata and controls

59 lines (43 loc) · 3.11 KB

Lesson 3.2: Procedures

Student Objectives

Students will be able to...

  • Build custom command blocks in SNAP
  • Utilize detail removal and generalization to construct blocks that practice abstraction

Materials/Preparation

Pacing Guide

Duration Description
5 minutes Welcome, attendance, bell work, announcements
10 minutes Lecture, demo, and introduce activity
20 minutes Drawing Shapes activity
15 minutes Review and wrap-up

Instructor's Notes

  1. Lecture and Demonstration
    • Review with students the concepts of abstraction, generalization, and detail removal
      • Ask students to provide definitions and examples of each
    • Discuss when abstraction can be used to help simplify code
      • Guide students to realization that much code is used in many similar circumstances and shouldn’t be rewritten
      • Emphasize potential for errors when changes are made in addition to inconvenience when code is redundant
    • Demonstrate constructing a custom command block
      • Use a simple example, such as jumping (from the platform game)
      • If needed, use part 2.1 (drawing a square) as a further example
  2. Activity
    • Students should complete the “Drawing Shapes (Again)” activity individually or in pairs
      • Work with students to be certain that they are using custom blocks and variables as described by the activity
      • Point out places where code can be abstracted and generalized
      • Emphasize conciseness and clarity in code
  3. Review
    • Discuss one or two student submissions
      • Point out differences between different students’ solutions
      • Point out missed opportunities for abstraction (if any)
      • Discuss how this custom block can be useful

##BJC Lecture Suggestion ####Good for Classroom Instruction

Accommodation/Differentiation

  • In addition to attempting the bonus in the lab, advanced students can be encouraged to write a new custom block that draws a specified number of the given shape (for example, 2 squares or 5 hexagons). The number of shapes should be taken as user input.
  • Struggling students can be given solution code for all of section 1. Work with these students to answer the questions in part 1.5 so that they are prepared to attempt the custom block authoring.