// Numbas version: finer_feedback_settings {"name": "Calculate savings from installing a heat pump", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate savings from installing a heat pump", "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": {}, "extensions": [], "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", "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/"}]}