Lab 4: Making Computers Do Math

This lab doesn't have an overarching project; it's a collection of different techniques involving functions. The most important ideas, one per page, in order:

  1. The mod (remainder) function
  2. Snap!'s "export blocks" feature to make libraries
  3. The higher-order function combine

By the way, the use of language in which "do math" includes arithmetic functions but not Boolean functions comes from the AP CSP Framework. We do know that logic is part of math!

Pacing

The 3 lab pages could be split across 2–3 days (60–120 minutes). Expected times to complete follow:

Lab Pages

Solutions

Correlation with 2020 AP CS Principles Framework 

Computational Thinking Practices: Skills

Learning Objectives:

Essential Knowledge: