Tooltip
These resources have been reviewed and selected by STEM Learning’s team of education specialists for factual accuracy and relevance to teaching STEM subjects in UK schools.

Programming - Calculating wages

In this programming task students have to create a program to calculate how much to pay delivery drivers based on either the hours they work or the number of parcels they deliver. The students are given the rules that should apply to the program and are then encouraged to plan their program either as a flowchart or pseudocode before they start to code in Python.

Once the code is written students have to complete a test plan to identify any problems and debug any errors. For students that require more support with Python programming there is a scaffolded coding task where the lines of code are written, but are in a random order, so students have to sequence these correctly.

The activity includes:

  • teacher notes
  • adaptable presentation
  • adaptable student activity sheet
  • suggested solutions
     

Python files in a zip folder

  • Scaffolded programming task
  • Example solution - Concatenation
  • Example solution - F-strings

Further education resources that link the world of logistics to suitable lessons and subjects in school can be found on the Generation Logistics Education Hub.

Show health and safety information

Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.

Information on the permitted use of this resource is covered by the Category Seven Content section in STEM Learning’s Terms and conditions.

You might also like

Lists that tag this content