// Numbas version: finer_feedback_settings {"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}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate carbon footprint and energy use per unit floor area", "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": {}, "extensions": [], "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", "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}], "resources": []}]}], "contributors": [{"name": "Simon Stuttaford", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/26443/"}]}