Technology and society · GCSE · OCR J277 1.6.1, AQA 8525 3.8, Edexcel 1CP2 5.1.1 · about 15 min
Making, running and disposing of devices: materials, data centres, e-waste and what helps.
[1 mark]When is most of a phone's carbon footprint created?
[1 mark]What is e-waste?
[1 mark]Why are data centres an environmental concern?
[1 mark]15 devices of 60 W run for 3 hours. How many kWh is that?
[1 mark]How does efficient code help the environment?
For each device in devices (a name, its watts, and how many hours it runs a day), work out the energy for a 190-day school year across count of them. Print <name>: <kwh> kWh rounded to 1 decimal place, then at the end total: <kwh> kWh, cost: £<n> at 28p a unit rounded to 2 decimal places, and carbon: <n> kg CO2 at 190 g a unit, rounded to the nearest whole number.
# the two lines every program starts with: the commands, then the robot
from bugbot import *
connect()
days = 190
count = 15 # how many of each device the class has
# name, watts, hours a day
devices = [("laptop", 50, 5), ("robot charging", 8, 1), ("projector", 220, 4)]The hint students can ask for: Energy for one device is its watts times its hours times the days times how many there are, converted from watt-hours to kilowatt-hours. Add them up, then turn the total into money and into carbon with the rates given.
from bugbot import *
connect()
days = 190
count = 15
devices = [("laptop", 50, 5), ("robot charging", 8, 1), ("projector", 220, 4)]
total = 0
for name, watts, hours in devices:
kwh = watts * hours * days * count / 1000
total = total + kwh
print(f"{name}: {kwh:.1f} kWh")
print(f"total: {total:.1f} kWh")
print(f"cost: £{total * 0.28:.2f}")
print(f"carbon: {round(total * 190 / 1000)} kg CO2")
Any program that meets the task's checks is marked correct in the simulator; this is one way, not the only way.