// Numbas version: exam_results_page_options {"name": "NA halogen vs LED light globes revised (10+)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/halogen_LED_900.png", "/srv/numbas/media/question-resources/halogen_LED_900.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA halogen vs LED light globes revised (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "

Used for LANTITE preparation (Australia). NA = Number & Algebra strand. Students calculate the cost of the halogen globes given electricity cost, number of globes, number of years, replacement cost and lifespan of globes. Some of these variables are randomly selected. There are more than 10 different versions of this question.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

The government encourages people to switch to energy efficient devices. One way to save is to replace halogen light globes with LED light globes.

\n

The infographic below shows the electricity cost of using a halogen light globe and an equivalent LED light globe for 1 year. It also gives the average lifespan for each type of globe. 

\n

\n

https://accreditedpower.com.au/led-upgrades/nsw-home-led-upgrade-program/

", "advice": "

Halogen globe costs

\n

The school currently has {globes} new halogen globes, and each halogen globe will need to be replaced every 2 years.

\n

Over the next {years} years, the globes will each need to be replaced {trunc(years/2)} times once .

\n

The cost of replacing {globes} halogen globes twice is given by {trunc(years/2)} x {globes} x \\${split(dpformat(halogencost,2,\"si-en\"),\".00\")[0]} = \\${split(dpformat(trunc(years/2)*globes*halogencost,2,\"si-en\"),\".00\")[0]}

\n

Each halogen globe costs \\$35.13 per year in electricity, and there are {globes} globes which will be used for {years} years.

\n

The electricity cost for the halogen globes over the {years} years is {globes} x {years} x \\$35.13 = \\${haleleccost}

\n

To obtain the total cost for the halogen lighting, add the globe cost and the electricity cost.

\n

\\${split(dpformat(trunc(years/2)*globes*halogencost,2,\"si-en\"),\".00\")[0]} + \\${haleleccost} = \\${totalhalogencost}

\n

Rounded to the nearest dollar, the cost of the halogen lighting over the next {years} years is \\${formatnumber(precround(parsenumber(totalhalogencost,\"si-en\"),0),\"si-en\")}

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"years": {"name": "years", "group": "Ungrouped variables", "definition": "random(2.5 .. 5.5#1)", "description": "

The number of years over which the savings are to be calculated.

", "templateType": "randrange", "can_override": false}, "halogencost": {"name": "halogencost", "group": "Ungrouped variables", "definition": "random(4.5 .. 6.5#0.25)", "description": "

The cost of one halogen globe.

", "templateType": "randrange", "can_override": false}, "globes": {"name": "globes", "group": "Ungrouped variables", "definition": "random(5 .. 15#1)", "description": "

The number of globes that are being replaced.

", "templateType": "randrange", "can_override": false}, "haleleccost": {"name": "haleleccost", "group": "Ungrouped variables", "definition": "split(dpformat(globes*years*35.13,2,\"si-en\"),\".00\")[0]", "description": "

The total cost of electricity for the halogen globes.

", "templateType": "anything", "can_override": false}, "totalhalogencost": {"name": "totalhalogencost", "group": "Ungrouped variables", "definition": "split(dpformat(trunc(years/2)*globes*halogencost+globes*years*35.13,2,\"si-en\"),\".00\")[0]", "description": "

The total cost of the halogen globes.

", "templateType": "anything", "can_override": false}, "finalanswer": {"name": "finalanswer", "group": "Ungrouped variables", "definition": "precround(parsenumber(totalhalogencost,\"si-en\"),0)", "description": "

The rounded final answer.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["years", "halogencost", "globes", "haleleccost", "totalhalogencost", "finalanswer"], "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": "

A school chooses NOT to replace the {globes} halogen globes in their main learning space.

\n

How much will this school pay for this halogen lighting during the next {years} years?

\n

Assume that the existing halogen globes would first need replacement in 2 years time, and that replacement halogen globes cost {currency(halogencost,\"\\$\",\"\")} each.

\n

In your calculations, include the cost of buying replacement halogen globes every 2 years, and the cost of the electricity.

\n

Do not include the money they lose by not converting to LED globes.

\n

Round your answer to the nearest dollar, but do not enter the $ sign.

", "minValue": "{finalanswer}", "maxValue": "{finalanswer}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}