GRADE 7 · COMPUTING · UNIT 2 · LESSON 2.13

Decomposing problems: Creating a smart solution

Protecting a museum crown

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

8 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Protecting a museum crown

Book extension, project or review · original companion practice

A museum-alert challenge needs a justified design rather than a single guessed sensor. Define what change the model will detect, the condition that triggers it, the alert output and the normal state. Consider missed detections and false alerts; a classroom prototype does not guarantee theft prevention.

Today’s two goals
  • Select and justify a sensor-based approach to the museum protection scenario.
  • Represent the condition and active/inactive outputs in a flowchart and attempt a matching program.
Original PaxaKids illustration for Protecting a museum crown. Precise program text and data are supplied in the workbook models.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Explore the clues

Tap one card to find out more.

Understand the idea

A museum-alert challenge needs a justified design rather than a single guessed sensor. Define what change the model will detect, the condition that triggers it, the alert output and the normal state. Consider missed detections and false alerts; a classroom prototype does not guarantee theft prevention.

Concept to practise: Protecting a museum crown.

Work through an example

A movement-triggered model can show a warning when a specified gesture is detected and show a normal state otherwise. Moving another nearby object might not activate the sensor attached to the model, so placement and limitations need explanation.

Try before your workbook

A design uses a light sensor to detect a covered display. What should its test plan check besides a single successful warning?

Check my readiness thinking

Check covered and uncovered cases, the threshold boundary and possible false alerts from ordinary lighting changes. Explain placement and limitations. Evidence from a small classroom model is not proof of a real museum security system.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Design a museum protection prototype

Our challenge: help museum staff notice a possible disturbance around a crown display. Choose a sensor, plan its condition and outputs, attempt a program, test it and evaluate it.

Use a classroom model. A sensor signal can suggest a disturbance; it cannot by itself prove that a crown has been stolen.

Compare possible sensor approaches

Compare possible sensor approaches — original model
InputPossible classroom modelLimitation to consider
Light level: integerLifting an opaque cover exposes the LED light sensor.Room lighting may change without removal.
V2 logo touch: BooleanTouching a labelled model contact is the trigger.Touching the logo does not prove crown removal.
Gesture: Boolean predicateMoving a board attached to a model registers a gesture.Movement or vibration may have another cause.

A worked light-model decision

A worked light-model decision — original model
Example readingExpected model state
30Inactive
120Inactive: equality is not greater than 120.
180Active

Example active and inactive outputs

    Decision: level > 120?

    True branch
    1. Show SURPRISED
    2. Play BA_DING
    False branch
    1. Stop music
    2. Show HAPPY

    Complete an original starter

    ORIGINAL LIGHT-MODEL STARTER
    from microbit import *
    import music
    THRESHOLD = 120
    
    while True:
        level = display.read_light_level()
        if level > THRESHOLD:
            pass  # Add the active outputs.
        else:
            pass  # Add the inactive outputs.
        sleep(100)

    Plan tests that support an evaluation

    Plan tests that support an evaluation — original model
    Test purposeExample for the light model
    ActiveLift cover; record actual light and alert outputs.
    InactiveReplace cover; check inactive outputs.
    Boundary traceTrace 119, 120 and 121 against > 120.
    Possible false alertTry a normal room-light change and record the result.
    Paxa the Fox

    Try one step with Paxa!

    Use the API for the chosen editor. Label paper traces, simulator runs and physical tests accurately; ask a grown-up before connecting equipment. Save personal responses before leaving.

    Our Unit 2 learning path
    1. Lesson 2.1: All about software
    2. Lesson 2.2: Introducing the micro:bit
    3. Lesson 2.3: Using Python with the micro:bit
    4. Lesson 2.4: The micro:bit Python environment
    5. Lesson 2.5: Correcting errors using a flowchart
    6. Lesson 2.6: Using sensors in programming
    7. Lesson 2.7: Flowcharts for algorithm planning
    8. Lesson 2.8: Algorithmic solutions and data types
    9. Lesson 2.9: Planning a smart solution
    10. Lesson 2.10: Effective testing
    11. Lesson 2.11: Evaluating a program
    12. Lesson 2.12: Testing accelerometer gestures
    13. Lesson 2.13: Protecting a museum crown
    14. Lesson 2.14: Final project
    15. Lesson 2.15: Evaluation
    16. Lesson 2.16: What can you do?
    For grown-ups: using this lesson

    Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

    Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

    2. Fill in your workbook

    Read the teaching and the complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

    Protecting a museum crown8 student pages · original artwork

    Opening your PDF…

    Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

    TAKE YOUR PRACTICE OFFLINE

    3. Download the student worksheet

    All 8 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

    Student worksheet only · PDF · 8.3 MiB · No answer key included

    Download worksheet PDF ↓

    TRY FIRST, THEN CHECK TOGETHER

    Download the student worksheet →

    4. Answers & guidance

    Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

    Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

    Show answers for all 8 worksheets

    Worksheet 1

    1. Question 1: What should the prototype’s output help staff do? notice the chosen disturbance signal
    2. Question 2: What makes a sensor choice justified? a clear link between the model action and its input

    Worksheet 2

    1. Question 3: Which is a numeric measurement? display.read_light_level()

    Worksheet 3

    1. Question 4: Which condition matches this example? level > 120
    2. Question 5: Why measure the real setup before fixing the threshold? covered and exposed readings depend on the setup

    Worksheet 4

    This page introduces the activity. There are no marked responses on this sheet.

    Worksheet 5

    1. Question 6: Does this unfinished starter already demonstrate the alert? No; its two pass statements add no outputs.

    Worksheet 6

    1. Question 7: Which judgement is supported by a false alert during a lighting change? the design may need a better trigger or threshold
    2. Question 8: What should happen after a repair? save the revision and retest it

    Worksheet 7

    1. Question 9: Choose and justify your sensor and condition in MuseumPlan_Paxa.txt. Draw its complete True/False flowchart below, with active and inactive outputs and a repeat. Attempt a matching program and save it; write its filename on the chart. You may adapt the light starter. Require sensor justified against a classroom museum-crown protection scenario, precise trigger/threshold, correct returned data type, active and inactive behaviours, test idea and limitation. Completed chart uses correct input, decision, labelled branches, outputs and return. Saved original program attempt matches chosen plan or identifies unfinished part. Light example: display.read_light_level() >120, active SURPRISED plus BA_DING, inactive stop plus HAPPY; equivalent calibrated threshold or different supported sensor acceptable when consistent. Touch logo requires V2 and Boolean; accelerometer predicate Boolean; measurement light numeric. State how model action relates to protected exhibit and avoid claiming sensor establishes actual theft. Plan may be attached text resource, chart on page. No numeric scoring. Grown-up review; personal evidence is required.

    Worksheet 8

    1. Question 10: Record your source revision, method, active and inactive inputs, expected and observed outputs, and pass/fail. Describe any repair and retest. Evaluate how well the prototype helps staff notice the chosen disturbance, using evidence and at least one limitation. Recommend an improvement and explain how you would test it. Include your partner’s finding. Require identified saved prototype attempt and actual method, both active/inactive cases, expected and actual outputs, pass/fail and repair/retest where needed. Record real readings or Boolean/gesture states; source fictional values not claimed as hardware measurements. Physical demonstration pending if no hardware; simulator distinguished. Evaluation ties evidence to museum-crown model brief, acknowledges proxy input/false positives/uncaptured events, and avoids a claim that simple sensor proves theft or guarantees protection. Improvement specific, feasible and testable; peer finding or honest self-check. Correct consistent alternative sensor/outputs accepted. Partially working prototype accepted as attempt when limitations and next repair are explicit, without inventing success. No numeric scoring. Grown-up review; personal evidence is required.
    Back to my workbook ↑

    Curriculum & workbook reference

    Computing for your homeschool day

    Explore Protecting a museum crown with this free Grade 7 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

    Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

    Understand your results

    Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

    Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

    For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

    The book pages identify the related teaching topic. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

    Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.