GRADE 7 · COMPUTING · UNIT 2 · LESSON 2.7

Decomposing problems: Creating a smart solution

Flowcharts for algorithm planning

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

6 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Flowcharts for algorithm planning

A decision needs a precise question and an outcome for each branch. < means less than, <= means less than or equal to, and >= means greater than or equal to. Put the chosen condition in the decision diamond and test the boundary as well as nearby values.

Today’s two goals
  • Choose comparison operators that express a stated sensor condition accurately.
  • Create a selection flowchart with explicit true and false outputs.
Original PaxaKids illustration for Flowcharts for algorithm planning. 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 decision needs a precise question and an outcome for each branch. < means less than, <= means less than or equal to, and >= means greater than or equal to. Put the chosen condition in the decision diamond and test the boundary as well as nearby values.

Concept to practise: Flowcharts for algorithm planning.

Work through an example

A lamp controlled by level <= 50 is ON at 50 and OFF at 51. Replacing <= with < would change the outcome at exactly 50. Branch labels should make that difference clear in the flowchart.

Try before your workbook

For level < 128, which branch is taken at 127, 128 and 129? State the complete range covered by the false branch.

Check my readiness thinking

127 takes the true branch. 128 and 129 take the false branch, which includes values greater than or equal to 128. Equality must not disappear from the explanation.

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.

Choose a condition that matches the rule

Our goal: use accurate comparison operators, plan both selection branches and trace values around a threshold.

Maya plans a model reading corner. Before writing code, she states what the sensor measures and what each possible result must do. Small changes to an operator can change the output at the boundary.

Read comparison operators accurately

Read comparison operators accurately — original model
OperatorMeaningExample that is True
less than19 < 20
>greater than21 > 20
<=less than or equal to20 <= 20
>=greater than or equal to20 >= 20
==equal to20 == 20
!=not equal to19 != 20

A desk-lamp plan with two explicit outputs

    Decision: level <= 50?

    True branch
    1. Turn lamp ON
    False branch
    1. Turn lamp OFF
    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.

    Flowcharts for algorithm planning6 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 6 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.2 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 6 worksheets

    Worksheet 1

    1. Question 1: What is selection? choosing a path according to a tested condition
    2. Question 2: Which values best check a boundary at 50? 49, 50 and 51

    Worksheet 2

    1. Question 3: Which condition means below 20? level < 20
    2. Question 4: What does <= mean? less than or equal to

    Worksheet 3

    1. Question 5: Which branch runs when the reading is exactly 50? True: lamp ON

    Worksheet 4

    1. Question 6: Reading 10: what is the lamp output? ON / on
    2. Question 7: Reading 50: what is the lamp output? ON / on
    3. Question 8: Reading 51: what is the lamp output? OFF / off
    4. Question 9: Reading 45: what is the lamp output? ON / on
    5. Question 10: If the test changed from <= 50 to < 50, which listed reading would change its output? 50

    Worksheet 5

    1. Question 11: Plan a repeated light-and-curtains controller: below 20, turn lights ON and CLOSE curtains; otherwise turn lights OFF and OPEN curtains. Draw the full flowchart with sensor input, a decision, labelled True/False branches, both outputs on each branch and a return to a fresh reading. Require Start, read light level, decision level < 20, True lights ON then curtains CLOSED (order of these independent outputs may be swapped), False lights OFF and curtains OPEN, branches rejoin and return to read. Correct symbols, arrow direction and labels; optional delay process acceptable. Equality 20 belongs to False; no orphan branch or Stop-only controller. Outputs are abstract commands for a model; a bare micro:bit does not directly control household devices. Do not add undocumented numeric scores. Grown-up review; personal evidence is required.

    Worksheet 6

    1. Question 12: For each reading, state the comparison result, light output and curtain output. Explain the result at exactly 20 and why < is needed. Ask your partner to follow both branches and the repeat arrow. Record one clear finding, any correction and a retrace. Explain why testing only 19 would miss a possible boundary error. 19: True, lights ON, curtains CLOSED. 20: False, lights OFF, curtains OPEN. 21: False, lights OFF, curtains OPEN. Below 20 is strict <; <= would incorrectly activate at 20. Partner should check input, decision, labelled True/False, both outputs per path and return to fresh reading. Evidence of an actual peer check and any repair/retrace; if peer unavailable, identify an independent self-check honestly. A below-only test cannot distinguish < from <= and does not exercise False path. Accept unambiguous equivalent output words and drawing order; no numeric scoring. Apply C08 correct <= meaning. Grown-up review; personal evidence is required.
    Back to my workbook ↑

    Curriculum & workbook reference

    Computing for your homeschool day

    Explore Flowcharts for algorithm planning 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.