// 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": "
Calculate the extra financial cost and carbon emissions over a year if the heating is increased from {temperature_low}°C to {temperature_high}°C.
\nGiven:
\nLower 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": "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/"}]}