// Numbas version: finer_feedback_settings {"name": "Carbon Footprinting Quiz", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", "", "", "", "", ""], "variable_overrides": [[], [], [], [], [], []], "questions": [{"name": "Calculate carbon footprint and energy use per unit floor area", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "tags": [], "metadata": {"description": "

The student must calculate the carbon footprint given electricity and gas energy usage.

", "licence": "None specified"}, "statement": "
\n

Calculate the carbon footprint and energy use per unit floor area.

\n

Given:

\n\n

Assumptions:

\n\n
", "advice": "

Carbon footprint for electricity
{electricity_use}kWh x {electricity_carbon_kg_per_kWh}kg/kWh = {electricity_use*electricity_carbon_kg_per_kWh}kg

\n

\n

Carbon footprint for gas
• {gas_use}kWh x {gas_carbon_kg_per_kWh}kg/kWh = {gas_use*gas_carbon_kg_per_kWh}kg

\n

\n

Total carbon footprint
• {electricity_use*electricity_carbon_kg_per_kWh}kg + {gas_use*gas_carbon_kg_per_kWh}kg = {(electricity_use*electricity_carbon_kg_per_kWh) + (gas_use*gas_carbon_kg_per_kWh)}kg

\n


Elec usage per m2
• {electricity_use}kWh / {floor_area}m2 = {precround(dec(electricity_use/floor_area),3)}kWh/m2

\n

\n

Gas usage per m2
• {gas_use}kWh / {floor_area}m2 = {precround(dec(gas_use/floor_area),3)}kWh/m2

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"electricity_use": {"name": "electricity_use", "group": "Parts a-c group", "definition": "random(50000 .. 200000#1)", "description": "

Electricity use in KWh per year.

", "templateType": "randrange", "can_override": false}, "gas_use": {"name": "gas_use", "group": "Parts a-c group", "definition": "random(150000 .. 500000#1)", "description": "
\n
Natural gas use in kWh per year
\n
", "templateType": "randrange", "can_override": false}, "gas_carbon_kg_per_kWh": {"name": "gas_carbon_kg_per_kWh", "group": "Parts a-c group", "definition": "random(0.15 .. 0.21#0.001)", "description": "

Kilograms of CO2 produced per kWh of energy. 

", "templateType": "randrange", "can_override": true}, "electricity_carbon_kg_per_kWh": {"name": "electricity_carbon_kg_per_kWh", "group": "Parts a-c group", "definition": "random(0.46 .. 0.2#0.001)", "description": "

Kilograms of CO2 produced per kWh of energy. 

", "templateType": "randrange", "can_override": false}, "total_carbon_footprint": {"name": "total_carbon_footprint", "group": "Parts a-c group", "definition": "(electricity_use * electricity_carbon_kg_per_kwh) + (gas_use * gas_carbon_kg_per_kwh)", "description": "

Variable that stores the quantity of CO2 in Kg. 

", "templateType": "anything", "can_override": false}, "floor_area": {"name": "floor_area", "group": "Parts a-c group", "definition": "random(1000 .. 4000#100)", "description": "

Area of floor in metres squared. 

", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Parts a-c group", "variables": ["gas_use", "electricity_carbon_kg_per_kWh", "gas_carbon_kg_per_kWh", "total_carbon_footprint", "electricity_use", "floor_area"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the total carbon footprint in kgs. 

", "minValue": "total_carbon_footprint", "maxValue": "total_carbon_footprint", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Using the information above, calculate your energy use per unit floor area for electricity. Floor area – {floor_area}m2

", "minValue": "{electricity_use / floor_area}", "maxValue": "{electricity_use / floor_area}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Using the information above, calculate your energy use per unit floor area for gas. Floor area – {floor_area}m2

", "minValue": "{gas_use / floor_area}", "maxValue": "{gas_use / floor_area}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "How many kiloWatt-hours does your boiler use each year?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
\n\n
\n

How many kilowatt-hours does your boiler use each year?

\n

Given:

\n\n
\n
", "advice": "

Hot water Consumption
{boiler_power}kW x {hot_water_hours}hr x {operational_days_per_year}days = {hot_water_consumption}kWh 
Space Heating Consumption
{boiler_power*2}kW x {average_power_percent}% x {space_heating_hours}hrs x {operational_days_per_year/2}days = {space_heating_consumption}kWh
Total Energy Consumption
{hot_water_consumption}kWh + {space_heating_consumption}kWh = {total_energy_consumption}kWh = {dec(total_energy_consumption/1000)}Mwh

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"operational_days_per_year": {"name": "operational_days_per_year", "group": "Ungrouped variables", "definition": "random(200 .. 300#10)", "description": "

The number of days the boilers are operational during the year. 

", "templateType": "randrange", "can_override": false}, "boiler_power": {"name": "boiler_power", "group": "Ungrouped variables", "definition": "random(100 .. 300#50)", "description": "

The power of each boiler in kilowatts. 

", "templateType": "randrange", "can_override": true}, "hot_water_hours": {"name": "hot_water_hours", "group": "Ungrouped variables", "definition": "random(1 .. 3#1)", "description": "

The hours per day one boiler runs at full power to supply hot water. 

", "templateType": "randrange", "can_override": false}, "space_heating_hours": {"name": "space_heating_hours", "group": "Ungrouped variables", "definition": "random(5 .. 9#1)", "description": "

The hours per day both boilers run to supply space heating. 

", "templateType": "randrange", "can_override": false}, "average_power_percent": {"name": "average_power_percent", "group": "Ungrouped variables", "definition": "random(50 .. 80#5)", "description": "

The average power both boilers run at to supply space heating. 

", "templateType": "randrange", "can_override": false}, "hot_water_consumption": {"name": "hot_water_consumption", "group": "Ungrouped variables", "definition": "boiler_power*hot_water_hours*operational_days_per_year", "description": "

Variable to store the answer for hot water consumption during the period in kWh. 

", "templateType": "anything", "can_override": false}, "space_heating_consumption": {"name": "space_heating_consumption", "group": "Ungrouped variables", "definition": "boiler_power*2*(average_power_percent/100)*space_heating_hours*(operational_days_per_year/2)", "description": "

Variable to store the answer for space heating consumption during half of the operational period in kWh. 

", "templateType": "anything", "can_override": false}, "total_energy_consumption": {"name": "total_energy_consumption", "group": "Ungrouped variables", "definition": "hot_water_consumption+space_heating_consumption", "description": "

Variable to store the answer for the total energy consumption over the period in kWh. 

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["operational_days_per_year", "boiler_power", "hot_water_hours", "space_heating_hours", "average_power_percent", "hot_water_consumption", "space_heating_consumption", "total_energy_consumption"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the hot water energy consumption during the period in kWh. 

", "minValue": "hot_water_consumption", "maxValue": "hot_water_consumption", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the space heating energy consumption during the period in kWh. 

", "minValue": "space_heating_consumption", "maxValue": "space_heating_consumption", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Calculate the total energy consumption during the period in kWh. 

", "minValue": "total_energy_consumption", "maxValue": "total_energy_consumption", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "How much heat loss (in W) will you save by insulating your building\u2019s walls and windows?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
\n
\n

How much heat loss (in watts) will you save by insulating your building’s walls and windows if you improve the wall U-value from {old_wall_u_value} to {new_wall_u_value}, and the window U-value from {old_window_u_value} to {new_window_u_value}?

\n

Given:

\n\n
\n
", "advice": "

Heat loss from walls before insulation
{wall_area}m2 x {old_wall_u_value}(u-value) x {inside_temperature - outside_temperature}(temp diff in kelvin) = {old_wall_heat_loss}W
Heat loss from walls after insulation
{wall_area}m2 x {new_wall_u_value}(u-value) x {inside_temperature - outside_temperature}(temp diff in kelvin)  = {new_wall_heat_loss}W
Heat loss saving from wall insulation
{old_wall_heat_loss}W - {new_wall_heat_loss} W = {total_savings_wall}W

\n

\n

Heat loss from windows before insulation
{window_area}m2 x {old_window_u_value}(u-value) x {inside_temperature - outside_temperature}(temp diff in kelvin) = {old_window_heat_loss}W
Heat loss from windows after insulation
{window_area}m2 x {new_window_u_value}(u-value) x {inside_temperature - outside_temperature}(temp diff in kelvin)  = {new_window_heat_loss}W
Heat loss saving from window insulation
{old_window_heat_loss}W - {new_window_heat_loss} W = {total_savings_window}W

\n

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"outside_temperature": {"name": "outside_temperature", "group": "Ungrouped variables", "definition": "random(-10 .. 10#5)", "description": "

Outside air temperature in Celsius. 

", "templateType": "randrange", "can_override": false}, "inside_temperature": {"name": "inside_temperature", "group": "Ungrouped variables", "definition": "random(15 .. 25#5)", "description": "

Inside air temperature in Celsius. 

", "templateType": "randrange", "can_override": false}, "wall_area": {"name": "wall_area", "group": "Ungrouped variables", "definition": "random(150 .. 500#50)", "description": "

Wall surface area in metres squared. 

", "templateType": "randrange", "can_override": false}, "old_window_u_value": {"name": "old_window_u_value", "group": "Ungrouped variables", "definition": "random(3.5 .. 6#0.1)", "description": "

U-value of window prior to insulating. 

", "templateType": "randrange", "can_override": false}, "new_window_u_value": {"name": "new_window_u_value", "group": "Ungrouped variables", "definition": "random(2.5 .. 1.1#0.1)", "description": "

U-value of window after insulating. 

", "templateType": "randrange", "can_override": false}, "new_wall_u_value": {"name": "new_wall_u_value", "group": "Ungrouped variables", "definition": "random(0.4 .. 1.6#0.1)", "description": "

U-value of wall after insulating. 

", "templateType": "randrange", "can_override": false}, "old_wall_u_value": {"name": "old_wall_u_value", "group": "Ungrouped variables", "definition": "random(1.9 .. 2.5#0.1)", "description": "

U-value of wall prior to insulating. 

", "templateType": "randrange", "can_override": false}, "old_wall_heat_loss": {"name": "old_wall_heat_loss", "group": "Ungrouped variables", "definition": "wall_area*old_wall_u_value*(inside_temperature - outside_temperature)", "description": "

The heat loss of the old wall prior to insulation, in Watts.

", "templateType": "anything", "can_override": false}, "new_wall_heat_loss": {"name": "new_wall_heat_loss", "group": "Ungrouped variables", "definition": "wall_area*new_wall_u_value*(inside_temperature-outside_temperature)", "description": "

The heat loss of the new wall prior to insulation, in Watts.

", "templateType": "anything", "can_override": false}, "window_area": {"name": "window_area", "group": "Ungrouped variables", "definition": "random(50 .. 250#50)", "description": "

Area of windows in metres squared. 

", "templateType": "randrange", "can_override": true}, "old_window_heat_loss": {"name": "old_window_heat_loss", "group": "Ungrouped variables", "definition": "window_area*old_window_u_value*(inside_temperature-outside_temperature)", "description": "

The heat loss of the old windows prior to insulation, in Watts.

", "templateType": "anything", "can_override": false}, "new_window_heat_loss": {"name": "new_window_heat_loss", "group": "Ungrouped variables", "definition": "window_area*new_window_u_value*(inside_temperature-outside_temperature)", "description": "

The heat loss of the new windows after insulation, in Watts.

", "templateType": "anything", "can_override": false}, "total_savings_wall": {"name": "total_savings_wall", "group": "Ungrouped variables", "definition": "old_wall_heat_loss-new_wall_heat_loss", "description": "

Total energy savings from insulating wall, in Watts.

", "templateType": "anything", "can_override": false}, "total_savings_window": {"name": "total_savings_window", "group": "Ungrouped variables", "definition": "old_window_heat_loss-new_window_heat_loss", "description": "

Total energy savings from new windows, in Watts.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["outside_temperature", "inside_temperature", "wall_area", "old_window_u_value", "new_window_u_value", "new_wall_u_value", "old_wall_u_value", "old_wall_heat_loss", "new_wall_heat_loss", "window_area", "old_window_heat_loss", "new_window_heat_loss", "total_savings_wall", "total_savings_window"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Heat loss saving from wall insulation in Watts. 

", "minValue": "total_savings_wall", "maxValue": "total_savings_wall", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Heat loss saving from new insulated windows in Watts. 

", "minValue": "total_savings_window", "maxValue": "total_savings_window", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Calculate the financial and carbon cost each year to turn the heating up", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
\n
\n

Calculate the extra financial cost and carbon emissions over a year if the heating is increased from {temperature_low}°C to {temperature_high}°C.

\n

Given:

\n\n
\n
", "advice": "
\n
\n
Rise in gas consumption
{total_gas_use}kWh x {percent_increase_heating_consumption}% = {gas_consumption_increase}kWh
\n

Cost of extra gas consumption
{gas_consumption_increase}kWh x £{gas_price}/kWh = £{extra_cost_gas_consumption}
\n

Carbon emissions of extra gas
{gas_consumption_increase}kWh x {carbon_emissions_gas}kg/kWh = {extra_carbon_gas_consumption}kg\n
\n
\n
\n
\n
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"temperature_low": {"name": "temperature_low", "group": "Ungrouped variables", "definition": "temperature_high - 1", "description": "

Lower temperature in celsius. 

", "templateType": "anything", "can_override": false}, "total_gas_use": {"name": "total_gas_use", "group": "Ungrouped variables", "definition": "random(300000 .. 500000#10000)", "description": "

Total gas use in kWh. 

", "templateType": "randrange", "can_override": false}, "percent_space_heating": {"name": "percent_space_heating", "group": "Ungrouped variables", "definition": "random(60 .. 95#5)", "description": "

Percentage of total gas use that is space heating. 

", "templateType": "randrange", "can_override": false}, "percent_increase_heating_consumption": {"name": "percent_increase_heating_consumption", "group": "Ungrouped variables", "definition": "random(3 .. 15#1)", "description": "

Increase to space heating consumption after a one degree rise, in percent. 

", "templateType": "randrange", "can_override": false}, "gas_price": {"name": "gas_price", "group": "Ungrouped variables", "definition": "random(0.03 .. 0.07#0.001)", "description": "

The price of gas in £'s. 

", "templateType": "randrange", "can_override": false}, "carbon_emissions_gas": {"name": "carbon_emissions_gas", "group": "Ungrouped variables", "definition": "random(0.15 .. 0.2#0.001)", "description": "
\n
Gas carbon emissions, kg CO2 per kWh.\n
\n
\n
", "templateType": "randrange", "can_override": false}, "gas_consumption_increase": {"name": "gas_consumption_increase", "group": "Ungrouped variables", "definition": "total_gas_use*percent_increase_heating_consumption/100", "description": "

Variable to store the rise in gas consumption calculation.

", "templateType": "anything", "can_override": false}, "extra_cost_gas_consumption": {"name": "extra_cost_gas_consumption", "group": "Ungrouped variables", "definition": "gas_consumption_increase*gas_price", "description": "

Variable to store the cost of extra gas consumption calculation.

", "templateType": "anything", "can_override": false}, "extra_carbon_gas_consumption": {"name": "extra_carbon_gas_consumption", "group": "Ungrouped variables", "definition": "gas_consumption_increase*carbon_emissions_gas", "description": "

Variable to store the carbon emissions of extra gas consumption calculation.

", "templateType": "anything", "can_override": false}, "temperature_high": {"name": "temperature_high", "group": "Ungrouped variables", "definition": "random(18 .. 21#1)", "description": "

Higher temperature in celsius. 

", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["temperature_low", "total_gas_use", "percent_space_heating", "percent_increase_heating_consumption", "gas_price", "carbon_emissions_gas", "gas_consumption_increase", "extra_cost_gas_consumption", "extra_carbon_gas_consumption", "temperature_high"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Cost of extra gas consumption, in £:

", "minValue": "extra_cost_gas_consumption", "maxValue": "extra_cost_gas_consumption", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Carbon emissions of extra gas, in kg:

", "minValue": "extra_carbon_gas_consumption", "maxValue": "extra_carbon_gas_consumption", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Calculate savings from installing a heat pump", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Calculate the savings from installing a heat pump.

\n

Given:

\n", "advice": "

Heat requirement

\n\n

Electricity needed to generate the same amount of heat

\n\n

Cost of electricity

\n\n

Cost of gas

\n\n

Savings

\n", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"gas_consumption": {"name": "gas_consumption", "group": "Ungrouped variables", "definition": "random(200000 .. 600000#10000)", "description": "

Consumption of natural gas in kWh per anum. 

", "templateType": "randrange", "can_override": false}, "coeff_performance": {"name": "coeff_performance", "group": "Ungrouped variables", "definition": "random(3 .. 4#0.1)", "description": "

Coefficient of performance, units of heat output for units of electrical input.

", "templateType": "randrange", "can_override": false}, "boiler_eff": {"name": "boiler_eff", "group": "Ungrouped variables", "definition": "random(60 .. 90#5)", "description": "

Boiler efficiency in %.

", "templateType": "randrange", "can_override": false}, "heat_req": {"name": "heat_req", "group": "Ungrouped variables", "definition": "gas_consumption*boiler_eff/100", "description": "

Variable to store heat requirement calculation.

", "templateType": "anything", "can_override": false}, "electricity_req": {"name": "electricity_req", "group": "Ungrouped variables", "definition": "heat_req/coeff_performance", "description": "

Variable to store electricity requirement calculation.

", "templateType": "anything", "can_override": false}, "total_cost_electricity": {"name": "total_cost_electricity", "group": "Ungrouped variables", "definition": "electricity_req*cost_electricity_kwh", "description": "

Variable to store the total cost of electricity calculation.

", "templateType": "anything", "can_override": false}, "total_cost_gas": {"name": "total_cost_gas", "group": "Ungrouped variables", "definition": "gas_consumption*cost_gas_kwh", "description": "

Variable to store the total cost of gas calculation.

", "templateType": "anything", "can_override": false}, "cost_electricity_kwh": {"name": "cost_electricity_kwh", "group": "Ungrouped variables", "definition": "random(0.08 .. 0.15#0.01)", "description": "

The cost of electricity per kWh in £'s. 

", "templateType": "randrange", "can_override": false}, "cost_gas_kwh": {"name": "cost_gas_kwh", "group": "Ungrouped variables", "definition": "random(0.02 .. 0.06#0.01)", "description": "

The cost of gasper kWh in £'s. 

", "templateType": "randrange", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["gas_consumption", "coeff_performance", "boiler_eff", "heat_req", "electricity_req", "total_cost_electricity", "total_cost_gas", "cost_electricity_kwh", "cost_gas_kwh"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "
\n
Hints: first work out how much electricity you need to generate the heat
requirement.\n
\n
\n
", "minValue": "total_cost_gas - total_cost_electricity", "maxValue": "total_cost_gas - total_cost_electricity", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Calculate annual savings from turning desktop IT off outside of working hours", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
\n
\n

Calculate the annual savings from turning desktop IT off outside of working hours.

\n

Given:

\n\n

Hint: In this calculation, it's fine to have a fractional number of PCs.

\n
\n
", "advice": "
\n
Energy consumed by one PC running 24/7
{pc_power_idle}kW x 24h x 365d = {single_pc_power_247}kWh
\n

Energy consumed during working hours
{pc_power_idle}kW x {hours_working}h x 5d x 52weeks = {single_pc_power_working_hours}kWh
\n

Wasted energy
{single_pc_power_247}kWh - {single_pc_power_working_hours}kWh = {wasted_energy}kWh
\n

Cost saving for each PC
{wasted_energy}kWh x £{price_electricity}/kWh = £{single_pc_savings}
\n

Cost saving for {dec(number_pcs*percent_pcs_on/100)} PCs
£{single_pc_savings} x {dec(number_pcs*percent_pcs_on/100)} = £{total_cost_savings}\n
\n
\n
", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"number_pcs": {"name": "number_pcs", "group": "Ungrouped variables", "definition": "random(100 .. 600#1)", "description": "

Total number of PCs.

", "templateType": "randrange", "can_override": false}, "percent_pcs_on": {"name": "percent_pcs_on", "group": "Ungrouped variables", "definition": "random(10 .. 50#10)", "description": "

Percentage of PCs left on 24/7

", "templateType": "randrange", "can_override": false}, "pc_power_idle": {"name": "pc_power_idle", "group": "Ungrouped variables", "definition": "random(0.04 .. 0.09#0.005)", "description": "

The power each PC uses at idle in kW

", "templateType": "randrange", "can_override": false}, "hours_working": {"name": "hours_working", "group": "Ungrouped variables", "definition": "random(7 .. 9#1)", "description": "

Number of hours in a day considered to be 'working hours'

", "templateType": "randrange", "can_override": false}, "price_electricity": {"name": "price_electricity", "group": "Ungrouped variables", "definition": "random(0.07 .. 0.18#0.01)", "description": "

Cost electricity per kWh in £s. 

", "templateType": "randrange", "can_override": false}, "single_pc_power_247": {"name": "single_pc_power_247", "group": "Ungrouped variables", "definition": "pc_power_idle*24*365", "description": "

Variable to store who much power a single PC uses when left at idle 24/7 for a year.

", "templateType": "anything", "can_override": false}, "single_pc_power_working_hours": {"name": "single_pc_power_working_hours", "group": "Ungrouped variables", "definition": "pc_power_idle*hours_working*5*52", "description": "

Variable to store the power a single PC uses when left at idle over the working period.

", "templateType": "anything", "can_override": false}, "wasted_energy": {"name": "wasted_energy", "group": "Ungrouped variables", "definition": "single_pc_power_247-single_pc_power_working_hours", "description": "

Variable to store the energy wasted for a single PC left on idle 24/7 over a year. 

", "templateType": "anything", "can_override": false}, "single_pc_savings": {"name": "single_pc_savings", "group": "Ungrouped variables", "definition": "wasted_energy*price_electricity", "description": "

The cost saving for each PC if turned off outside of working hours. 

", "templateType": "anything", "can_override": false}, "total_cost_savings": {"name": "total_cost_savings", "group": "Ungrouped variables", "definition": "single_pc_savings*number_pcs*percent_pcs_on/100", "description": "

Variable to store the total cost savings. 

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["number_pcs", "percent_pcs_on", "pc_power_idle", "hours_working", "price_electricity", "single_pc_power_247", "single_pc_power_working_hours", "wasted_energy", "single_pc_savings", "total_cost_savings"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "total_cost_savings", "maxValue": "total_cost_savings", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": true, "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": true, "intro": "", "end_message": "", "results_options": {"printquestions": true, "printadvice": true}, "feedbackmessages": [], "reviewshowexpectedanswer": true, "showanswerstate": true, "reviewshowfeedback": true, "showactualmark": true, "showtotalmark": true, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "extensions": [], "custom_part_types": [], "resources": []}