// Numbas version: exam_results_page_options {"name": "Scaling a recipe", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Scaling a recipe", "tags": ["level 3", "personal and community"], "metadata": {"description": "

Written to help prepare pre-service teachers for the numeracy test in Australia called LANTITE.

\n

Based on the Australian Core Skills Framework - numeracy - level 3 - personal and community sample activity:Accurately measures a range of quantities to follow a recipe or operating instructions
incorporating making a product of a smaller or larger size than specified, e.g. follows a recipe
for six people and can adjust it to cater for 24 people

\n

Has an annoying plural issue

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

The following are the ingredients from a recipe that makes 12 {food}.

\n

\n\n\n\n\n\n\n\n
\n

\n

1 1/2 cups milk
1 egg
2 teaspoons vanilla extract
2 cups self-raising flour
1/4 teaspoon bicarbonate of soda
1/3 cup caster sugar
25g butter, melted

\n

\n

2 1/4 cups self-raising flour
3/4 cup caster sugar
1 egg
1/2 cup vegetable oil
3/4 cup milk
", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"food": {"name": "food", "group": "Ungrouped variables", "definition": "random(\"pancakes\", \"muffins\")", "description": "", "templateType": "anything", "can_override": false}, "worded_ingredient": {"name": "worded_ingredient", "group": "Ungrouped variables", "definition": "if(food=\"pancakes\",\n random([\"cups of milk\",(3/2)],[\"eggs\",1],[\"teaspoons of vanilla extract\", 2], [\"cups of self-raising flour\", 2], [\"teaspoons of bicarbonate of soda\", (1/4)], [\"cups of caster sugar\",(1/3)],[\"grams of butter\",25]),\n random([\"cups of self-raising flour\",(9/4)],[\"cups of caster sugar\",(3/4)],[\"eggs\",1],[\"cups of vegetable oil\", (1/2)],[\"cups of milk\",(3/4)]))", "description": "", "templateType": "anything", "can_override": false}, "new_amount": {"name": "new_amount", "group": "Ungrouped variables", "definition": "random([3,\"a quarter of\"],[4,\"a third of\"],[6,\"half of\"],[24,\"double\"],[36,\"triple\"],[48,\"four times\"])", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "scaling_factor*worded_ingredient[1]", "description": "", "templateType": "anything", "can_override": false}, "scaling_factor": {"name": "scaling_factor", "group": "Ungrouped variables", "definition": "new_amount[0]/12", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["food", "new_amount", "worded_ingredient", "scaling_factor", "ans"], "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": "

If you wanted to make {new_amount[0]} {food}, how many {worded_ingredient[0]} would you need? 

", "stepsPenalty": "1", "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The recipe tells us that for 12 {food} we need $\\simplify[fractionNumbers]{{worded_ingredient[1]}}$ {worded_ingredient[0]}. Since we were asked about making $\\var{new_amount[0]}$ {food} and $\\simplify[fractionNumbers]{{new_amount[0]}/12={scaling_factor}}$, we have been asked about making {new_amount[1]} the number contained in the recipe. So we will need $\\simplify[fractionNumbers]{{scaling_factor}}\\times \\simplify[fractionNumbers]{{worded_ingredient[1]}={ans}}$ {worded_ingredient[0]}.

"}], "minValue": "ans", "maxValue": "ans", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}