// Numbas version: finer_feedback_settings {"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}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate the financial and carbon cost each year to turn the heating up", "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": {}, "extensions": [], "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", "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/"}]}