GRADE 6 · COMPUTING · UNIT 1 · LESSON 1.14

Computational thinking and programming

Trace choices before programming

Learn the idea, try your workbook and explain your thinking.

Topic 1.4 · Planning programs6 fillable worksheet pagesRead at your own pace

LET’S LOOK, THINK AND TRY

Trace choices before programming

One-round game: use 1 = rock, 2 = paper, 3 = scissors. Rock beats scissors; scissors beat paper; paper beats rock. Equal choices give a draw.

I can…
  • Trace choices before programming.
  • trace the supplied model step by step and justify my result.
An original PaxaKids workbook scene for planning programs.
An original PaxaKids scene. Use the workbook’s exact diagrams and supplied records for its questions.

Plan the job before writing the program

Decomposition breaks a larger problem into smaller tasks. A useful plan states the input, processing, output and expected behaviour of each part. An interface lets the user give input and understand output. A prototype is an early model for trying an idea; it does not have to be a complete program. Agree the rules, sketch the interface and decide how each requirement will be tested.

Work through the example: Choose once, then store the choice

A correct paper algorithm draws one numbered card from a shuffled 1, 2, 3 set and stores it in C. It uses that same C for every comparison in the round. In a computer model, PICK RANDOM 1 TO 3 chooses one allowed whole number; store it once before testing it.

Original workbook model: Choose once, then store the choice.
The unchanged model from page 3 of your original student workbook.

Why this helps: Decomposition breaks a larger problem into smaller tasks. A useful plan states the input, processing, output and expected behaviour of each part. An interface lets the user give input and understand output. A prototype is an early model for trying an idea; it does not have to be a complete program. Agree the rules, sketch the interface and decide how each requirement will be tested.

Try it before the workbook

Which condition gives a draw?

Use the explanation to choose a reason. This first workbook question helps you check that you are ready.

Explore the clues

Open one card at a time.

Remember the idea

Decomposition breaks a larger problem into smaller tasks. A useful plan states the input, processing, output and expected behaviour of each part. An interface lets the user give input and understand output. A prototype is an early model for trying an idea; it does not have to be a complete program. Agree the rules, sketch the interface and decide how each requirement will be tested.

Check your first try

P and C are equal

One-round game: use 1 = rock, 2 = paper, 3 = scissors. Rock beats scissors; scissors beat paper; paper beats rock. Equal choices give a draw. P stores the player choice; C stores the computer choice. Both must be whole numbers from 1 to 3. Paxa and Maya use a paper decision table so no pair is missed.

Explain with evidence

The game must choose C once, accept an allowed P, decide one result and show both choices.

Paxa the Fox

Think safely with Paxa!

Use the supplied examples and a paper simulation first. Ask a grown-up before using a device or creating an online account. Never share passwords or private information.

Use the actual records and labels to explain your answer.

Our Unit 1 learning path
  1. Lesson 1.1: Read and explain a flowchart
  2. Lesson 1.2: Trace branches and repeated steps
  3. Lesson 1.3: Build an animation from a plan
  4. Lesson 1.4: Test and repair a decision plan
  5. Lesson 1.5: Combine programming ideas
  6. Lesson 1.6: Reason about loops, text and time
  7. Lesson 1.7: Build a small dialogue program
  8. Lesson 1.8: Test a clock and improve its rules
  9. Lesson 1.9: Define and call reusable routines
  10. Lesson 1.10: Trace routines and shared state
  11. Lesson 1.11: Build a quiz with reusable feedback
  12. Lesson 1.12: Coordinate sprites and test reuse
  13. Lesson 1.13: Plan a program and its interface
  14. Lesson 1.14: Trace choices before programming
  15. Lesson 1.15: Build a one-round choice game
  16. Lesson 1.16: Test a plan and improve a prototype
  17. Lesson 1.17: Evaluate against clear success criteria
  18. Lesson 1.18: Choose a systematic range of test data
  19. Lesson 1.19: Build and test an input-checking loop
  20. Lesson 1.20: Repair, retest and report improvements
  21. Lesson 1.21: Connect device inputs, variables and outputs
  22. Lesson 1.22: Act out a variable-controlled game
  23. Lesson 1.23: Build a button-controlled higher-or-lower game
  24. Lesson 1.24: Test device state and improve feedback
  25. Lesson 1.25: Build and evaluate a two-level quiz
For grown-ups: using this lesson

Explore the explanation and model together, then try the workbook. 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.

Opening or checking a page does not complete the lesson. Choose “Mark lesson finished” when ready. Optional account progress saves the selected grade, lesson position and completion across devices. Personal workbook responses remain in this tab; save your copy before leaving. Use fictional data and supervised devices; do not share passwords, contact details or real personal records.

2. Fill in your workbook

Read each page’s explanation and use its own diagrams, labels and supplied records. Choose, write or draw. Use Answer list for larger controls.

Trace choices before programming6 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.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 6 worksheets

Worksheet 1

  1. Question 1: Which condition gives a draw? a) P and C are equal
  2. Question 2: How many possible computer choices are allowed? 3
  3. Question 3: Which pair is a player win? a) P = 2, C = 1

Worksheet 2

  1. Question 4: How many rows are draws? 3
  2. Question 5: What result belongs to P = 3, C = 2? User wins / player wins
  3. Question 6: What result belongs to P = 2, C = 3? Computer wins

Worksheet 3

  1. Question 7: If the draw is 2, what word is displayed? Paper
  2. Question 8: How many random draws occur in this algorithm? 1
  3. Question 9: How many of the three IF conditions are true in one run? 1

Worksheet 4

  1. Question 10: How many words does faulty run A display? 0
  2. Question 11: How many words does faulty run B display? 3
  3. Question 12: Which repair guarantees one choice word? c) Store one draw and compare that same value

Worksheet 5

  1. Question 13: For P = 1, C = 3, is the winning condition true or false? true
  2. Question 14: For P = 1, C = 2, is it true or false? false
  3. Question 15: Why also check P = C separately? a) Equal choices are draws, not computer wins

Worksheet 6

  1. Question 16: Write an algorithm that covers draws, user wins and computer wins. Store one random integer1..3 in C; obtain P within the stated valid domain. IF P=C Result=Draw; ELSE IF any of (P1,C3),(P2,C1),(P3,C2), Result=User wins; ELSE Result=Computer wins. Display P,C,Result. Accept full nine-case equivalent logic. Grown-up review.
  2. Question 17: Explain how a complete test set is built and why three random trials are insufficient. Combine each P1,2,3 with every C1,2,3 to get nine ordered pairs. Random trials may repeat choices and miss branches; three trials cannot establish all nine outcomes. Fix C deliberately during logic testing. Grown-up review.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Planning programs with this free Grade 6 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.

The book pages identify the related teaching or assessment. These explanations, projects, review activities and student workbooks are original PaxaKids companion materials. These activities include paper alternatives. No separate publisher Workbook or proprietary digital project files are needed.