// 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.
\nGiven:
\nHeat requirement
Electricity needed to generate the same amount of heat
\nCost of electricity
\nCost of gas
\nSavings
\nConsumption 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": "