GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.30
Computational thinking and programming
Use a fixed factor in a calculation
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Use a fixed factor in a calculation
A named factor makes the assumption behind a calculation visible. Compute from that factor consistently and identify what the model includes. A percentage increase usually uses a factor above 1, not the percentage alone.
- Apply a named rate or multiplier and compare results before and after refactoring.
- Explain my method and support it with a labelled trace, example or test record.

Work through an example
For a modelled increase of 10%, use factor 1.10. Multiplying 40 by 1.10 gives 44 because it includes the original amount and the increase.
Try before your workbook
What factor and result apply to a 5% increase on 80 in this simple model?
Explore the clues
Tap one card to find out more.
Understand the idea
A named factor makes the assumption behind a calculation visible. Compute from that factor consistently and identify what the model includes. A percentage increase usually uses a factor above 1, not the percentage alone.
Concept to practise: Use a fixed factor in a calculation.
Work through an example
For a modelled increase of 10%, use factor 1.10. Multiplying 40 by 1.10 gives 44 because it includes the original amount and the increase.
Try before your workbook
What factor and result apply to a 5% increase on 80 in this simple model?
Check my readiness thinking
Use 1.05, giving 84. Using 0.05 alone would calculate the increase, 4, rather than the increased total.
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.
Use a fixed multiplier for a changing input
Use fictional credits for the calculations here. No personal earnings or real financial decisions are needed. We will predict results, compare literal and named versions, then design a discount calculator.
Read a complete original increase program
Original Paxa literal-factor program
amount = int(input())
increased_amount = amount * 1.2
print("New total:", f"{increased_amount:.2f}")Predict before checking actual execution
| Input amount | Displayed new total |
|---|---|
| 250 | {'clue': 'Amount to two decimal places', 'prompt': 'New total for 250', 'answers': ['300.00']} |
| 875 | {'clue': 'Amount to two decimal places', 'prompt': 'New total for 875', 'answers': ['1050.00']} |
| 1234 | {'clue': 'Amount to two decimal places', 'prompt': 'New total for 1234', 'answers': ['1480.80']} |
Refactor the factor without changing behaviour
Original Paxa named-factor version
INCREASE_FACTOR = 1.2
amount = int(input())
increased_amount = amount * INCREASE_FACTOR
print("New total:", f"{increased_amount:.2f}")Compare original and named versions
| Input | Literal version | Named version |
|---|---|---|
| 0 | {'clue': 'Amount to two decimal places', 'prompt': 'Literal result for 0', 'answers': ['0.00']} | {'clue': 'Amount to two decimal places', 'prompt': 'Named result for 0', 'answers': ['0.00']} |
| 1 | {'clue': 'Amount to two decimal places', 'prompt': 'Literal result for 1', 'answers': ['1.20']} | {'clue': 'Amount to two decimal places', 'prompt': 'Named result for 1', 'answers': ['1.20']} |
| 250 | {'clue': 'Amount to two decimal places', 'prompt': 'Literal result for 250', 'answers': ['300.00']} | {'clue': 'Amount to two decimal places', 'prompt': 'Named result for 250', 'answers': ['300.00']} |
| 1234 | {'clue': 'Amount to two decimal places', 'prompt': 'Literal result for 1234', 'answers': ['1480.80']} | {'clue': 'Amount to two decimal places', 'prompt': 'Named result for 1234', 'answers': ['1480.80']} |
Derive the multiplier from the percentage

Read this model’s labels and values
Plan a discount with an appropriate constant
| Original cost | Saving | Discounted total |
|---|---|---|
| 0 | {'clue': 'Amount to two decimal places', 'prompt': 'Saving for 0', 'answers': ['0.00']} | {'clue': 'Amount to two decimal places', 'prompt': 'Discounted total for 0', 'answers': ['0.00']} |
| 20 | {'clue': 'Amount to two decimal places', 'prompt': 'Saving for 20', 'answers': ['2.00']} | {'clue': 'Amount to two decimal places', 'prompt': 'Discounted total for 20', 'answers': ['18.00']} |
| 12.50 | {'clue': 'Amount to two decimal places', 'prompt': 'Saving for 12.50', 'answers': ['1.25']} | {'clue': 'Amount to two decimal places', 'prompt': 'Discounted total for 12.50', 'answers': ['11.25']} |
| 99.90 | {'clue': 'Amount to two decimal places', 'prompt': 'Saving for 99.90', 'answers': ['9.99']} | {'clue': 'Amount to two decimal places', 'prompt': 'Discounted total for 99.90', 'answers': ['89.91']} |
Review variables, constants and valid output
Python print arguments need commas between them. A name immediately followed by a quoted string without a comma is not a valid way to join these arguments.
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 10 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 10 worksheets
Worksheet 1
- Question 1: Which value is fixed in a 20% increase calculation? the factor 1.2
- Question 2: Which operation gives the new total after adding 20%? original amount multiplied by 1.2
Worksheet 2
- Question 3: Which variable stores the input? amount
- Question 4: Which variable stores the calculated new total? increased_amount
- Question 5: Which literal is a candidate for a named fixed factor? 1.2
Worksheet 3
- Question 6: New total for 250 300.00
- Question 7: New total for 875 1050.00
- Question 8: New total for 1234 1480.80
- Question 9: For input 250, what amount was added? 50 / 50.0 / 50.00
- Question 10: What should be recorded if the learner has not run the program? a prediction and actual execution marked Pending
Worksheet 4
- Question 11: What value is assigned to INCREASE_FACTOR? 1.2
- Question 12: What should happen to output after this refactoring? it remains the same for the same inputs
- Question 13: Which are the two changing numeric variables? amount and increased_amount
Worksheet 5
- Question 14: Literal result for 0 0.00
- Question 15: Named result for 0 0.00
- Question 16: Literal result for 1 1.20
- Question 17: Named result for 1 1.20
- Question 18: Literal result for 250 300.00
- Question 19: Named result for 250 300.00
- Question 20: Literal result for 1234 1480.80
- Question 21: Named result for 1234 1480.80
Worksheet 6
- Question 22: What fraction of the original remains after a 10% discount? 0.9 / 0.90
- Question 23: Which expression finds only the 10% saving? cost * 0.10
Worksheet 7
- Question 24: Saving for 0 0.00
- Question 25: Discounted total for 0 0.00
- Question 26: Saving for 20 2.00
- Question 27: Discounted total for 20 18.00
- Question 28: Saving for 12.50 1.25
- Question 29: Discounted total for 12.50 11.25
- Question 30: Saving for 99.90 9.99
- Question 31: Discounted total for 99.90 89.91
Worksheet 8
- Question 32: Which line is valid Python output syntax? print("New total:", increased_amount, "credits")
- Question 33: What do the named variable and constant share? an identifier and an associated value
- Question 34: Why name a fixed factor? to explain its role and centralise later edits
Worksheet 9
- Question 35: Use the complete page 2 increase program. Predict the full output for 250, 875 and 1234. Recreate and run it if available, or mark actual execution Pending. Identify both variables and their types and the fixed literal worth naming. Make a version with a meaningful named constant, compare all three original inputs plus zero and one, and record exact output, corrections and retests. Explain why the new total uses 1.2 rather than 0.2. Keep full source and records, describing any individual or partner work honestly. Input amount int; increased_amount float, factor 1.2 float and intended constant. Named version assigns INCREASE_FACTOR=1.2 once and uses it consistently. Full output New total: 300.00 / New total: 1050.00 / New total: 1480.80 for 250/875/1234; 0 -> 0.00, 1 -> 1.20. Both versions agree, actual/Pending, corrections/retests and full source. 1.2 includes original 100% plus 20%, whereas 0.2 gives the increase alone. Genuine individual/partner evidence; no missing publisher program or numerical learner score claimed. Grown-up review; personal evidence is required.
Worksheet 10
- Question 36: Create a Python calculator for the page 7 fictional 10% discount. Read a valid nonnegative decimal cost with float(input()). Use at least one meaningful named constant for the rate or remaining factor. Calculate and display the discounted total to two decimal places, identifying the input and result types. Use either subtraction of the saving or the equivalent remaining-factor method. Test all four page 7 costs, with predictions and actual output or Pending, then change the rate to 0.20 between runs and retest cost 20. Explain the changed calculation and keep complete code and evidence. Define DISCOUNT_RATE=0.10 and calculate cost*(1-DISCOUNT_RATE) or cost-cost*DISCOUNT_RATE; alternatively DISCOUNT_FACTOR=0.90 for direct multiplication. cost float, result float, meaningful constant retained fixed during run, valid display such as print("Discounted total:", f"{discounted_cost:.2f}"). Costs 0/20/12.50/99.90 -> 0.00/18.00/11.25/89.91; 20% rate at cost 20 -> 16.00, direct remaining factor becomes 0.80. Rate and saving not confused with final total. Full source/tests actual or Pending, correction/retest evidence and explanation. No real financial recommendation or learner execution asserted. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — pages 121–122
- PaxaKids Grade 8 Computing Lesson 1.30: Use a fixed factor in a calculation — pages 1–10
Computing for your homeschool day
Explore Use a fixed factor in a calculation 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.
