Each chapter features three guided investigations aligned with the book and Interactive Lab. Work through them in order, record predictions, and test edge cases.
Project 1 of 3 · v1-c09-p01
A shop remembers a ticket
Lab section: Lab A: A shop remembers a ticket · Related code: block-01.js
Objective: Investigate "A shop remembers a ticket" experimentally in the Chapter 09 Interactive Lab and connect the observed behavior to the chapter's underlying rule.
Procedure
Open the Chapter 09 Interactive Lab and select "Lab A: A shop remembers a ticket".
Record a prediction in your notebook before changing any controls, then run at least three distinct test inputs.
Inspect the corresponding JavaScript snippet(s) on the Chapter 09 Code page and trace how the algorithm computes the output.
Test a boundary or failure case (for example, invalid input, noise, or an extreme parameter) and explain why the system behaves as it does.
Sample Input: Baseline preset in "Lab A: A shop remembers a ticket" followed by one modified parameter or boundary test case.
Expected Observation: Deterministic visual/numeric state update in the lab panel matching the mathematical model for Chapter 09.
Show Hint & Extension Challenge
Hint: Check the worked example and equation in the Chapter 09 Lesson before testing edge cases.
Extension Challenge: Design an adversarial or edge-case input that exposes a limit of the model in "A shop remembers a ticket" and document what real-world standard addresses it.
Reflection Question: What real-world constraint or trade-off did "A shop remembers a ticket" make visible that you would not notice from using a finished app?
Objective: Investigate "Compare fictional clues" experimentally in the Chapter 09 Interactive Lab and connect the observed behavior to the chapter's underlying rule.
Procedure
Open the Chapter 09 Interactive Lab and select "Lab B: Compare fictional clues".
Record a prediction in your notebook before changing any controls, then run at least three distinct test inputs.
Inspect the corresponding JavaScript snippet(s) on the Chapter 09 Code page and trace how the algorithm computes the output.
Test a boundary or failure case (for example, invalid input, noise, or an extreme parameter) and explain why the system behaves as it does.
Sample Input: Baseline preset in "Lab B: Compare fictional clues" followed by one modified parameter or boundary test case.
Expected Observation: Deterministic visual/numeric state update in the lab panel matching the mathematical model for Chapter 09.
Show Hint & Extension Challenge
Hint: Check the worked example and equation in the Chapter 09 Lesson before testing edge cases.
Extension Challenge: Design an adversarial or edge-case input that exposes a limit of the model in "Compare fictional clues" and document what real-world standard addresses it.
Reflection Question: What real-world constraint or trade-off did "Compare fictional clues" make visible that you would not notice from using a finished app?
Lab section: Lab C: Share only what is needed · Related code: block-03.js
Objective: Investigate "Share only what is needed" experimentally in the Chapter 09 Interactive Lab and connect the observed behavior to the chapter's underlying rule.
Procedure
Open the Chapter 09 Interactive Lab and select "Lab C: Share only what is needed".
Record a prediction in your notebook before changing any controls, then run at least three distinct test inputs.
Inspect the corresponding JavaScript snippet(s) on the Chapter 09 Code page and trace how the algorithm computes the output.
Test a boundary or failure case (for example, invalid input, noise, or an extreme parameter) and explain why the system behaves as it does.
Sample Input: Baseline preset in "Lab C: Share only what is needed" followed by one modified parameter or boundary test case.
Expected Observation: Deterministic visual/numeric state update in the lab panel matching the mathematical model for Chapter 09.
Show Hint & Extension Challenge
Hint: Check the worked example and equation in the Chapter 09 Lesson before testing edge cases.
Extension Challenge: Design an adversarial or edge-case input that exposes a limit of the model in "Share only what is needed" and document what real-world standard addresses it.
Reflection Question: What real-world constraint or trade-off did "Share only what is needed" make visible that you would not notice from using a finished app?