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.

Topic 1.5 · Arithmetic and translation8 fillable worksheet pagesRead at your own pace

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.

Today’s two goals
  • 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.
Original PaxaKids illustration for Arithmetic and translation. Use the supplied program and data models for precise workbook facts.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

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

An arithmetic expression combines numeric values. A program can assign its result to a name for later use or display the result directly. The meaning comes from the task: adding costs is different from multiplying a packet count by items per packet.

Use the stated inputs and check the result before deciding that a calculation suits a real situation.

Use the four arithmetic operators

Use the four arithmetic operators — original model
OperatorMeaning 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

The four input lines receive the starting model total, cost1, cost2 and cost3, in that order. Use the whole-number practice inputs 5, 9, 4 and 7. Each cost is added when its following assignment executes.
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

Read inputs in this order: fictional learner alias, packets and stickers_each. For Rin, 4 and 9, the club adds six spare stickers and shares the total among three teams. Use inputs that make equal whole-sticker shares possible.
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

Modify, predict, check and explain — original model
StageWhat to record
Make and investigateConnect the plan, calculation and Python statements.
Modify and predictChange a named value or step; predict before checking.
Run or dry-runRecord the actual result, exact revision and method.
Compare and explainExplain 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.

Paxa the Fox

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
  1. Lesson 1.1: Recall algorithms and representations
  2. Lesson 1.2: Purpose and conventions of pseudocode
  3. Lesson 1.3: Input, output and strings
  4. Lesson 1.4: Identifiers and assignment
  5. Lesson 1.5: Arithmetic and translation
  6. Lesson 1.6: Trace and review a sequence
  7. Lesson 1.7: Conditions and two-way flow
  8. Lesson 1.8: IF THEN and indentation
  9. Lesson 1.9: IF THEN ELSE and decision diagrams
  10. Lesson 1.10: Ordered ELSEIF and fallback ELSE
  11. Lesson 1.11: Match flowchart and pseudocode branches
  12. Lesson 1.12: AND, OR and NOT
  13. Lesson 1.13: Grouping, precedence and review
  14. Lesson 1.14: Why software searches
  15. Lesson 1.15: A successful linear search
  16. Lesson 1.16: An unsuccessful search and termination
  17. Lesson 1.17: Practise and communicate the search
  18. Lesson 1.18: Translate conditions into Python
  19. Lesson 1.19: One-branch IF programs
  20. Lesson 1.20: Two-way IF ELSE programs
  21. Lesson 1.21: Ordered ELIF choices
  22. Lesson 1.22: Ranges and independent decisions
  23. Lesson 1.23: Boolean operators in Python
  24. Lesson 1.24: Design and test recommendations
  25. Lesson 1.25: Trace, debug and reflect
  26. Lesson 1.26: Choose data types and recognise Boolean literals
  27. Lesson 1.27: Set and use Boolean flags
  28. Lesson 1.28: Explain and identify constants
  29. Lesson 1.29: Express constants in three algorithm forms
  30. Lesson 1.30: Use a fixed factor in a calculation
  31. Lesson 1.31: Cast to Boolean and validate an empty response
  32. Lesson 1.32: Recall calls and trace return values
  33. Lesson 1.33: Supply parameters and reuse library code
  34. Lesson 1.34: Choose and import libraries responsibly
  35. Lesson 1.35: Round with floor and ceiling
  36. Lesson 1.36: Use pi and investigate another mathematical feature
  37. Lesson 1.37: Generate random choices within bounds
  38. Lesson 1.38: Investigate random real values and review library use
  39. Lesson 1.39: Retrieve test tables and predict selection outcomes
  40. Lesson 1.40: Decompose everyday problems
  41. Lesson 1.41: Decompose programs and organise shared work
  42. Lesson 1.42: Develop through repeated build/test cycles
  43. Lesson 1.43: Predict and verify algorithm outcomes
  44. Lesson 1.44: Choose representative and boundary tests
  45. Lesson 1.45: Build, execute and review a test plan
  46. Lesson 1.46: Recall physical inputs and compare transmission media
  47. Lesson 1.47: Configure a radio group and agree a message scheme
  48. Lesson 1.48: Send and receive numbers and strings
  49. Lesson 1.49: Trace numeric message sequences
  50. Lesson 1.50: Transmit text and use received data in conditions
  51. Lesson 1.51: Diagnose and extend a message protocol
  52. Lesson 1.52: Review communication and evidence of testing
  53. Lesson 1.53: Project 1: Adventure story
  54. Lesson 1.54: Project 2: Fire, Water, Earth
  55. 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.

Arithmetic and translation8 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 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

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 8 worksheets

Worksheet 1

  1. Question 1: Which expression models 4 packets with 9 stickers in each? 4 * 9
  2. Question 2: What does assigning an expression result allow? using that stored result in a later statement

Worksheet 2

  1. Question 3: Evaluate 6 + 4 * 3. 18
  2. Question 4: Evaluate (6 + 4) * 3. 30
  3. Question 5: Evaluate 17 / 2. 8.5

Worksheet 3

  1. Question 6: How do these two final output lines compare? both display 19
  2. Question 7: Which program assigns the sum to the name result? the first program

Worksheet 4

  1. Question 8: How many distinct variable names occur in this program? 4
  2. Question 9: How many explicit total = total + cost assignments occur? 3
  3. Question 10: What final model total is displayed for the stated inputs? 25

Worksheet 5

  1. Question 11: What is total after the six spares are added for Rin, 4 and 9? 42
  2. Question 12: Why can Python display the share as 14.0? / produces a floating-point result even when the division is exact

Worksheet 6

  1. Question 13: If a checked result differs from your prediction, what should happen? trace the actual statements and explain the discrepancy
  2. 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

  1. 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

  1. 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.
Back to my workbook ↑

Curriculum & workbook reference

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.