GRADE 6 · COMPUTING · UNIT 1 · LESSON 1.8
Computational thinking and programming
Test a clock and improve its rules
Learn the idea, try your workbook and explain your thinking.
LET’S LOOK, THINK AND TRY
Test a clock and improve its rules
Paxa and Sami test a simulated display using supplied 24-hour data: Hour is 0 to 23; Minute is 0 to 59 , both integers. Convert the hour: 0 becomes 12; above 12, subtract 12; otherwise keep it. Use am for Hour < 12 and pm otherwise.
- Test a clock and improve its rules.
- test my result and explain an improvement.

Combine three programming ideas
Sequence runs instructions in order. Selection chooses a path after testing a condition. Iteration repeats instructions. A variable stores a value that may change as the program runs. Arithmetic operators calculate values; comparison operators produce true or false. Read the starting values, apply each instruction and record the new value before continuing. A numeric-looking string is text unless the program converts it.
Work through the example: Follow the hour-conversion plan
This paper pseudocode converts only the hour number. Minutes and the am/pm suffix are added afterwards using the rule on page 1. ELSE IF checks the second condition only when Hour is not zero.

Why this helps: Sequence runs instructions in order. Selection chooses a path after testing a condition. Iteration repeats instructions. A variable stores a value that may change as the program runs. Arithmetic operators calculate values; comparison operators produce true or false. Read the starting values, apply each instruction and record the new value before continuing. A numeric-looking string is text unless the program converts it.
Try it before the workbook
What 12-hour hour replaces Hour = 0?
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
Sequence runs instructions in order. Selection chooses a path after testing a condition. Iteration repeats instructions. A variable stores a value that may change as the program runs. Arithmetic operators calculate values; comparison operators produce true or false. Read the starting values, apply each instruction and record the new value before continuing. A numeric-looking string is text unless the program converts it.
Check your first try
12
Paxa and Sami test a simulated display using supplied 24-hour data: Hour is 0 to 23; Minute is 0 to 59 , both integers. Convert the hour: 0 becomes 12; above 12, subtract 12; otherwise keep it. Use am for Hour < 12 and pm otherwise. Display minutes with two digits. Displayed text can also be read aloud by a teacher; no online speech service is needed.
Explain with evidence
Design a complete paper clock-conversion algorithm for permitted Hour and Minute values. Include separate rules for the hour, minute text and suffix. You may use a flowchart or clear pseudocode.

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
- Lesson 1.1: Read and explain a flowchart
- Lesson 1.2: Trace branches and repeated steps
- Lesson 1.3: Build an animation from a plan
- Lesson 1.4: Test and repair a decision plan
- Lesson 1.5: Combine programming ideas
- Lesson 1.6: Reason about loops, text and time
- Lesson 1.7: Build a small dialogue program
- Lesson 1.8: Test a clock and improve its rules
- Lesson 1.9: Define and call reusable routines
- Lesson 1.10: Trace routines and shared state
- Lesson 1.11: Build a quiz with reusable feedback
- Lesson 1.12: Coordinate sprites and test reuse
- Lesson 1.13: Plan a program and its interface
- Lesson 1.14: Trace choices before programming
- Lesson 1.15: Build a one-round choice game
- Lesson 1.16: Test a plan and improve a prototype
- Lesson 1.17: Evaluate against clear success criteria
- Lesson 1.18: Choose a systematic range of test data
- Lesson 1.19: Build and test an input-checking loop
- Lesson 1.20: Repair, retest and report improvements
- Lesson 1.21: Connect device inputs, variables and outputs
- Lesson 1.22: Act out a variable-controlled game
- Lesson 1.23: Build a button-controlled higher-or-lower game
- Lesson 1.24: Test device state and improve feedback
- 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.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
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.5 MiB · No answer key included
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
- Question 1: What 12-hour hour replaces Hour = 0? c) 12
- Question 2: Which suffix belongs to Hour = 12? b) pm
Worksheet 2
- Question 3: What is H12 when Hour = 12? 12
- Question 4: What is H12 when Hour = 23? 11
Worksheet 3
- Question 5: What complete display should test A produce? 12:05 am / 12:05am
- Question 6: What complete display should test B produce? 12:00 pm / 12:00pm
- Question 7: What complete display should test C produce? 11:09 pm / 11:09pm
Worksheet 4
- Question 8: Which hour number should replace the faulty 0? 12
- Question 9: Which two-digit minute text should replace 5? 05
- Question 10: Why should Hour = 12 be tested too? b) It checks the noon boundary
Worksheet 5
- Question 11: What is the new 24-hour Hour value? 0
- Question 12: What is the new Minute value? 0 / 00
- Question 13: What complete 12-hour display represents the new time? 12:00 am / 12:00am
Worksheet 6
- Question 14: Write your conversion plan. Explain how midnight, noon and a minute below ten are handled. If Hour0 H12=12; else if Hour>12 H12=Hour-12; else H12=Hour. If Minute<10, prefix its displayed text with0; otherwise use both digits. am for Hour<12, pm otherwise. JOIN H12, colon, minute text, space and suffix. Midnight is12am; noon12pm. Accept equivalent complete logic, including a correct modulo12 version. Grown-up review.
- Question 15: Give expected displays for 00:00, 12:00, 13:05 and 23:59. Explain why testing only 15:30 is insufficient. 12:00am;12:00pm;1:05pm;11:59pm. Testing15:30 misses midnight/noon and leading-zero minute boundaries. Require correct expected displays and at least one named missed boundary. Grown-up review.
Curriculum & workbook reference
- Cambridge Primary Computing Learner’s Book 6 — pages 19–33
- PaxaKids Grade 6 Computing Lesson 1.8: Test a clock and improve its rules — pages 1–6
Computing for your homeschool day
Explore Programming constructs 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.
