GRADE 7 · COMPUTING · UNIT 2 · LESSON 2.14

Decomposing problems: Creating a smart solution

Final project

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

12 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Final project

Book extension, project or review · original companion practice

Start the project with success criteria, required inputs and outputs, a complete flowchart and a test plan. Select sensor APIs and board features deliberately. Keep every required input and output in the design, including the normal state. A working fragment does not establish that the whole prototype meets the brief.

Today’s two goals
  • Plan a sensor-based prototype against the stated school-computer protection requirements.
  • Create a flowchart and MicroPython solution with selection and the required multiple inputs and outputs.
Original PaxaKids illustration for Final project. 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

Start the project with success criteria, required inputs and outputs, a complete flowchart and a test plan. Select sensor APIs and board features deliberately. Keep every required input and output in the design, including the normal state. A working fragment does not establish that the whole prototype meets the brief.

Concept to practise: Final project.

Work through an example

A model can check a light reading and a button state, then use a visible message and an appropriate sound as outputs. Its plan must specify how those inputs combine, when each output occurs and how false conditions are handled.

Try before your workbook

Before testing a prototype, what evidence should show that all required inputs and outputs are covered? What should happen if suitable hardware is unavailable?

Check my readiness thinking

Use a requirements checklist tied to the flowchart, code and planned tests. Without suitable hardware, complete and label the design or trace honestly; do not record invented physical observations or a completed device test.

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.

Create a school-computer alert prototype

Project brief: help school staff notice a possible disturbance near a computer. Use a micro:bit sensor to select outputs, then build and test a classroom prototype.

Keep a written plan, complete flowchart, saved MicroPython program and test record. Explain what the model detects and how that signal relates to the staff’s purpose.

Keep the full project requirements visible

Keep the full project requirements visible — original model
RequirementEvidence to keep
Chosen light, touch or accelerometer inputExact API, returned type and model arrangement.
More than one inputExplain the extra input and its effect.
More than one outputIdentify each output and its purpose.
Selection and a flowchartBoth outcomes, all inputs/outputs and repeat.
Implementation and testsSaved program, transfer, observations and retests.

Discuss software type and simulation

The complete labelled software layers diagram is provided in the original workbook. Use its exact labels when answering the workbook questions.

Write a plan with a clear finish point

Write a plan with a clear finish point — original model
Plan partWhat to decide
Purpose and userWhat staff need to notice and understand.
RequirementsSensor, additional input, outputs and selection rule.
ResourcesV2 board, USB data cable, editor and model materials.
Completion pointAgreed submission point and saved evidence.
Success criteriaActive/inactive behaviour and extra-input effect.

Choose the sensor and its actual data type

Choose the sensor and its actual data type — original model
ApproachMicroPython condition exampleType used
Lightdisplay.read_light_level() < 100integer reading; Boolean comparison
V2 logo touchpin_logo.is_touched()Boolean result
Movementaccelerometer.was_gesture("shake")Boolean result

An example using two input sources

An example using two input sources — original model
A held?Sensor active?Example outputs
FalseFalseHAPPY; sound stopped
FalseTrueHAPPY; sound stopped
TrueFalseHAPPY; sound stopped
TrueTrueSURPRISED; alarm tone

Represent the example rule accurately

    Decision: A held AND active?

    True branch
    1. Show SURPRISED
    2. Start alarm tone
    False branch
    1. Stop sound
    2. Show HAPPY

    Complete the original project scaffold

    ORIGINAL LIGHT + BUTTON SCAFFOLD
    from microbit import *
    import music
    THRESHOLD = 100
    
    while True:
        active = display.read_light_level() < THRESHOLD
        if button_a.is_pressed() and active:
            pass  # Add alert image and sound.
        else:
            pass  # Add inactive image and stop sound.
        sleep(100)

    Select the test rows for your sensor

    For the light example, trace 99, 100 and 101 with threshold 100. For physical trials, record actual readings using print(level) after temporarily storing the light reading in a variable. Do not invent exact room readings. For touch or gesture, record the actual action and predicate outcome.
    Select the test rows for your sensor — original model
    Source test pairChosen sensor state to exercise
    Rows 1 and 2: lightYour light condition active, then inactive.
    Rows 3 and 4: touchTouch detected, then not detected.
    Rows 5 and 6: movementSelected gesture detected, then not detected.

    Connect, send, observe and preserve evidence

    Ask a partner whether the alert image and sound communicate the intended message to staff. Note one usability finding and a practical limitation. A simulator can help before hardware is available; label that evidence separately.
    1. Confirm plan, chart and completed source agree
    2. Connect board; send the identified revision
    3. Run chosen active/inactive and extra-input tests
    4. Record actual outputs and any failed case
    5. Repair, save/send and retest if needed
    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.

    Final project12 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 12 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.4 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 12 worksheets

    Worksheet 1

    1. Question 1: Which is required by this project? more than one input and more than one output
    2. Question 2: Which pair provides two distinct input sources? light sensor and a button

    Worksheet 2

    1. Question 3: Which combination provides two output types? an LED image and a speaker tone

    Worksheet 3

    1. Question 4: How is the alert program classified here? applications software
    2. Question 5: What does a simulator trial establish by itself? behaviour in the simulated model

    Worksheet 4

    1. Question 6: Which is a testable success criterion? when enabled and triggered, the chosen image and sound occur

    Worksheet 5

    1. Question 7: Which statement is accurate? a touch predicate returns a Boolean

    Worksheet 6

    1. Question 8: A is held but the sensor condition is False. What is chosen? inactive image and sound stopped
    2. Question 9: Sensor is active but A is not held. What is chosen? inactive image and sound stopped

    Worksheet 7

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

    Worksheet 8

    1. Question 10: Which condition must the completed active branch satisfy? A held and sensor active

    Worksheet 9

    1. Question 11: Your project uses logo touch. Which source test pair applies? 3 and 4

    Worksheet 10

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

    Worksheet 11

    1. Question 12: Complete ProjectPlan_Paxa.txt, including simulator benefits and the software category. Draw the full two-input selection flowchart below. Complete and save a matching MicroPython program with multiple inputs and outputs; write the plan/source filenames on the chart. Discuss it with a partner before testing. Written plan must cover school-computer protection purpose/user, requirements, chosen light/touch/accelerometer sensor and sensing arrangement, exact returned type, second input, condition, active/inactive outputs, hardware/software, agreed completion point and measurable success criteria. Explain simulator benefits/limits and applications rather than systems software for this user-task prototype. Chart includes all inputs, labelled True/False selection, both output behaviours, repeat and matching variables. Saved completed MicroPython, no remaining pass placeholders. More than one input and output required: chosen sensor plus A button, display plus speaker is an original example, not mandatory published implementation. Equivalent alternative second input/control accepted if justified and tested. C03 separate Python editor and display/Image/music APIs; C07 actual sensor return type. Plan and source attachments may hold detail beyond canvas; no numeric scoring. Grown-up review; personal evidence is required.

    Worksheet 12

    1. Question 13: Select your sensor’s active/inactive pair from page 9. Record those tests, a second-input-disabled test, and any relevant boundary or repeat tests. Fill Expected before running; record actual board results, revision and Pass/Fail. Use the notes for repairs/retests, one usability finding and a limitation. Require selected source pair: light active/inactive, touch detected/not, or gesture detected/not, with concrete data/action and intended outputs. Test chosen second input changes behaviour; original example A held + active gives SURPRISED/tone, A held + inactive or A not held gives HAPPY/music.stop. Include numeric boundary for chosen light threshold or appropriate repeated positive/negative trials for Boolean sensor. Identify actual source revision, physical V2 board, completed transfer, measured readings or observed touch/gesture, expected/actual/pass-fail. Repairs followed by retests; if all pass state no repair required. Plan discussion/trace before code and sensor-specific source-row choice evident. Usability finding linked to staff purpose, limitation such as light false alert/proxy input. Simulator/traces separate; physical pending if unavailable, do not claim complete device demonstration from source/API stubs. Detailed CSV permitted; no numeric scoring. Grown-up review; personal evidence is required.
    Back to my workbook ↑

    Curriculum & workbook reference

    Computing for your homeschool day

    Explore Final project 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.