GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.5
Computational thinking and programming
Arithmetic and translation
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Arithmetic and translation
Translate arithmetic meaning as well as syntax. Parentheses group operations, and the chosen operator determines whether a calculation adds, multiplies or divides. Include the units in your interpretation.
- Evaluate expressions, store or output results, and relate a pseudocode expression to Python syntax.
- Explain my method and support it with a labelled trace, example or test record.

Work through an example
A cost of 4 per item for 3 items is 4 × 3 = 12. A separate fee of 2 gives total = (4 × 3) + 2 = 14. Adding the fee to each item instead would be a different model.
Try before your workbook
Five items cost 3 each, with one fee of 4. What calculation and result match that description?
Explore the clues
Tap one card to find out more.
Understand the idea
Translate arithmetic meaning as well as syntax. Parentheses group operations, and the chosen operator determines whether a calculation adds, multiplies or divides. Include the units in your interpretation.
Concept to practise: Arithmetic and translation.
Work through an example
A cost of 4 per item for 3 items is 4 × 3 = 12. A separate fee of 2 gives total = (4 × 3) + 2 = 14. Adding the fee to each item instead would be a different model.
Try before your workbook
Five items cost 3 each, with one fee of 4. What calculation and result match that description?
Check my readiness thinking
Use (5 × 3) + 4 = 19. The fee is added once after calculating the item subtotal.
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 the operation and check the units
Use the stated inputs and check the result before deciding that a calculation suits a real situation.
Use the four arithmetic operators
| Operator | Meaning in these numeric examples |
|---|---|
| + | Addition |
| - | Subtraction |
| * | Multiplication |
| / | Division |
Compare storing a result with displaying it directly
ORIGINAL: STORE THEN DISPLAY
left = 8
right = 11
result = left + right
print(result)ORIGINAL: DISPLAY DIRECTLY
left = 8
right = 11
print(left + right)Investigate an original running total
ORIGINAL RUNNING-TOTAL PROGRAM
total = int(input())
cost1 = int(input())
total = total + cost1
cost2 = int(input())
total = total + cost2
cost3 = int(input())
total = total + cost3
print("Model total:", total)Read the supplied original C01 sticker-share program
ORIGINAL PAXA C01 RESOURCE
learner_alias = input()
packets = int(input())
stickers_each = int(input())
total = packets * stickers_each
total = total + 6
shared = total / 3
print(learner_alias, "receives", shared, "stickers.")Modify, predict, check and explain
| Stage | What to record |
|---|---|
| Make and investigate | Connect the plan, calculation and Python statements. |
| Modify and predict | Change a named value or step; predict before checking. |
| Run or dry-run | Record the actual result, exact revision and method. |
| Compare and explain | Explain agreement or a discrepancy, then state the next action. |
Files for this activity
Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Try one step with Paxa!
Trace code in the stated order and preserve exact spelling and case. Use fictional data. Label a prediction, paper trace, simulator run and physical-device test separately; an unperformed test stays Pending. Save personal responses before leaving.
Our Unit 1 learning path
- Lesson 1.1: Recall algorithms and representations
- Lesson 1.2: Purpose and conventions of pseudocode
- Lesson 1.3: Input, output and strings
- Lesson 1.4: Identifiers and assignment
- Lesson 1.5: Arithmetic and translation
- Lesson 1.6: Trace and review a sequence
- Lesson 1.7: Conditions and two-way flow
- Lesson 1.8: IF THEN and indentation
- Lesson 1.9: IF THEN ELSE and decision diagrams
- Lesson 1.10: Ordered ELSEIF and fallback ELSE
- Lesson 1.11: Match flowchart and pseudocode branches
- Lesson 1.12: AND, OR and NOT
- Lesson 1.13: Grouping, precedence and review
- Lesson 1.14: Why software searches
- Lesson 1.15: A successful linear search
- Lesson 1.16: An unsuccessful search and termination
- Lesson 1.17: Practise and communicate the search
- Lesson 1.18: Translate conditions into Python
- Lesson 1.19: One-branch IF programs
- Lesson 1.20: Two-way IF ELSE programs
- Lesson 1.21: Ordered ELIF choices
- Lesson 1.22: Ranges and independent decisions
- Lesson 1.23: Boolean operators in Python
- Lesson 1.24: Design and test recommendations
- Lesson 1.25: Trace, debug and reflect
- Lesson 1.26: Choose data types and recognise Boolean literals
- Lesson 1.27: Set and use Boolean flags
- Lesson 1.28: Explain and identify constants
- Lesson 1.29: Express constants in three algorithm forms
- Lesson 1.30: Use a fixed factor in a calculation
- Lesson 1.31: Cast to Boolean and validate an empty response
- Lesson 1.32: Recall calls and trace return values
- Lesson 1.33: Supply parameters and reuse library code
- Lesson 1.34: Choose and import libraries responsibly
- Lesson 1.35: Round with floor and ceiling
- Lesson 1.36: Use pi and investigate another mathematical feature
- Lesson 1.37: Generate random choices within bounds
- Lesson 1.38: Investigate random real values and review library use
- Lesson 1.39: Retrieve test tables and predict selection outcomes
- Lesson 1.40: Decompose everyday problems
- Lesson 1.41: Decompose programs and organise shared work
- Lesson 1.42: Develop through repeated build/test cycles
- Lesson 1.43: Predict and verify algorithm outcomes
- Lesson 1.44: Choose representative and boundary tests
- Lesson 1.45: Build, execute and review a test plan
- Lesson 1.46: Recall physical inputs and compare transmission media
- Lesson 1.47: Configure a radio group and agree a message scheme
- Lesson 1.48: Send and receive numbers and strings
- Lesson 1.49: Trace numeric message sequences
- Lesson 1.50: Transmit text and use received data in conditions
- Lesson 1.51: Diagnose and extend a message protocol
- Lesson 1.52: Review communication and evidence of testing
- Lesson 1.53: Project 1: Adventure story
- Lesson 1.54: Project 2: Fire, Water, Earth
- Lesson 1.55: Check your progress 1
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 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.
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 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 · 7.9 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 8 worksheets
Worksheet 1
- Question 1: Which expression models 4 packets with 9 stickers in each? 4 * 9
- Question 2: What does assigning an expression result allow? using that stored result in a later statement
Worksheet 2
- Question 3: Evaluate 6 + 4 * 3. 18
- Question 4: Evaluate (6 + 4) * 3. 30
- Question 5: Evaluate 17 / 2. 8.5
Worksheet 3
- Question 6: How do these two final output lines compare? both display 19
- Question 7: Which program assigns the sum to the name result? the first program
Worksheet 4
- Question 8: How many distinct variable names occur in this program? 4
- Question 9: How many explicit total = total + cost assignments occur? 3
- Question 10: What final model total is displayed for the stated inputs? 25
Worksheet 5
- Question 11: What is total after the six spares are added for Rin, 4 and 9? 42
- Question 12: Why can Python display the share as 14.0? / produces a floating-point result even when the division is exact
Worksheet 6
- Question 13: If a checked result differs from your prediction, what should happen? trace the actual statements and explain the discrepancy
- Question 14: For physical whole stickers, what needs attention if the calculated share is fractional? whether equal whole-sticker distribution is possible under the model
Worksheet 7
- Question 15: Make a pseudocode plan and Python program that assign 8 and 11 to two descriptive names, add them, store the result and display it. Align each plan step with its Python statement. Then change the values to 5 and 7, predict the result before checking and record the actual run or dry-run method. Give the code here or cite the exact saved revision, and explain what changed and what remained the same. Retain make/investigate/modify/predict/run cycle through an original addition example. First result 19, changed result 12; two assigned inputs, a stored sum and output. Correct correspondence of <- versus = and OUTPUT versus print; one-to-one alignment or clear equivalent. Source revision or complete code identified. Prediction comes before actual run/trace, with method and any pending device action honest. The algorithm stays addition while the data change. No invented result or numeric score. Grown-up review; personal evidence is required.
Worksheet 8
- Question 16: Write a consistent pseudocode plan for the page 5 program. Trace the inputs Rin, 4, 9 and then Sol, 5, 6, showing total after multiplication, total after adding six, shared and the final message. Add a step that deducts two stickers from each calculated share before output. Predict and check both changed results, explain why total is unchanged by reassigning shared and identify the numeric display after Python division. State your method and source revision; leave unperformed device work Pending. Original C01 task retained. Rin: first total 36, updated total 42, shared 14.0; Python line Rin receives 14.0 stickers. Sol: 30,36,12.0; Sol receives 12.0 stickers. Plan uses three named inputs, total multiplication and reassignment, division then output with literal/value order. Insert shared = shared - 2 after division and before print; revised shares 12.0 and 10.0 and corresponding messages, while total stays 42 or 36. Require predictions before actual run/trace, exact method/revision and whole-object interpretation. Pseudocode may show mathematical 14/12 with explanation of Python float display. No invented practical evidence or numeric scoring. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — pages 22–24
- PaxaKids Grade 8 Computing Lesson 1.5: Arithmetic and translation — pages 1–8
Computing for your homeschool day
Explore Arithmetic and translation with this free Grade 8 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
Closed answers are checked in your browser. Drawings and written explanations 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.
Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. 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.
