// Numbas version: finer_feedback_settings {"name": "How many kiloWatt-hours does your boiler use each year?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "How many kiloWatt-hours does your boiler use each year?", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
How many kilowatt-hours does your boiler use each year?
\nGiven:
\nHot water Consumption
• {boiler_power}kW x {hot_water_hours}hr x {operational_days_per_year}days = {hot_water_consumption}kWh
Space Heating Consumption
• {boiler_power*2}kW x {average_power_percent}% x {space_heating_hours}hrs x {operational_days_per_year/2}days = {space_heating_consumption}kWh
Total Energy Consumption
• {hot_water_consumption}kWh + {space_heating_consumption}kWh = {total_energy_consumption}kWh = {dec(total_energy_consumption/1000)}Mwh
The number of days the boilers are operational during the year.
", "templateType": "randrange", "can_override": false}, "boiler_power": {"name": "boiler_power", "group": "Ungrouped variables", "definition": "random(100 .. 300#50)", "description": "The power of each boiler in kilowatts.
", "templateType": "randrange", "can_override": true}, "hot_water_hours": {"name": "hot_water_hours", "group": "Ungrouped variables", "definition": "random(1 .. 3#1)", "description": "The hours per day one boiler runs at full power to supply hot water.
", "templateType": "randrange", "can_override": false}, "space_heating_hours": {"name": "space_heating_hours", "group": "Ungrouped variables", "definition": "random(5 .. 9#1)", "description": "The hours per day both boilers run to supply space heating.
", "templateType": "randrange", "can_override": false}, "average_power_percent": {"name": "average_power_percent", "group": "Ungrouped variables", "definition": "random(50 .. 80#5)", "description": "The average power both boilers run at to supply space heating.
", "templateType": "randrange", "can_override": false}, "hot_water_consumption": {"name": "hot_water_consumption", "group": "Ungrouped variables", "definition": "boiler_power*hot_water_hours*operational_days_per_year", "description": "Variable to store the answer for hot water consumption during the period in kWh.
", "templateType": "anything", "can_override": false}, "space_heating_consumption": {"name": "space_heating_consumption", "group": "Ungrouped variables", "definition": "boiler_power*2*(average_power_percent/100)*space_heating_hours*(operational_days_per_year/2)", "description": "Variable to store the answer for space heating consumption during half of the operational period in kWh.
", "templateType": "anything", "can_override": false}, "total_energy_consumption": {"name": "total_energy_consumption", "group": "Ungrouped variables", "definition": "hot_water_consumption+space_heating_consumption", "description": "Variable to store the answer for the total energy consumption over the period in kWh.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["operational_days_per_year", "boiler_power", "hot_water_hours", "space_heating_hours", "average_power_percent", "hot_water_consumption", "space_heating_consumption", "total_energy_consumption"], "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": "Calculate the hot water energy consumption during the period in kWh.
", "minValue": "hot_water_consumption", "maxValue": "hot_water_consumption", "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": "Calculate the space heating energy consumption during the period in kWh.
", "minValue": "space_heating_consumption", "maxValue": "space_heating_consumption", "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": "Calculate the total energy consumption during the period in kWh.
", "minValue": "total_energy_consumption", "maxValue": "total_energy_consumption", "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/"}]}