// Numbas version: exam_results_page_options {"name": "NA1 - Money Calculation - Make Change", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA1 - Money Calculation - Make Change", "tags": [], "metadata": {"description": "

Calculate the change from a note given two costs.

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

You buy a sandwich for {PriceS} and a drink for {PriceD}.

\n

You pay with a £5 bank note, what is the correct change in pounds?

", "advice": "\n\n\n\n\n\n
\n
\n

To find the total cost of the sandwich and drink, add them together:

\n

{PriceS} $+$ {PriceD} $=$ {Sumtext}

\n

If you pay with a £5 banknote, your change will be £5 minus the sum of the sandwich and drink:

\n

£5.00 $-$ {Sumtext} = {answertext}

\n

\n

Use this link to find some resources which will help you revise this topic.

\n
\n
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"PriceD": {"name": "PriceD", "group": "Prices", "definition": "currency(PD,\"\u00a3\",\"p\")", "description": "", "templateType": "anything", "can_override": false}, "PriceS": {"name": "PriceS", "group": "Prices", "definition": "currency(PS,\"\u00a3\",\"p\")", "description": "", "templateType": "anything", "can_override": false}, "PS": {"name": "PS", "group": "Prices", "definition": "random(0.5 .. 2.5#0.01)", "description": "", "templateType": "randrange", "can_override": false}, "PD": {"name": "PD", "group": "Prices", "definition": "random(0.5 .. 2.5#0.01)", "description": "", "templateType": "randrange", "can_override": false}, "SUM": {"name": "SUM", "group": "For explanation", "definition": "PS+PD", "description": "", "templateType": "anything", "can_override": false}, "Sumtext": {"name": "Sumtext", "group": "For explanation", "definition": "currency(SUM,\"\u00a3\",\"p\")", "description": "", "templateType": "anything", "can_override": false}, "ANSWER": {"name": "ANSWER", "group": "For explanation", "definition": "5 - sum", "description": "", "templateType": "anything", "can_override": false}, "Answertext": {"name": "Answertext", "group": "For explanation", "definition": "currency(answer,\"\u00a3\",\"p\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "PS>PD", "maxRuns": "20"}, "ungrouped_variables": [], "variable_groups": [{"name": "Prices", "variables": ["PD", "PriceD", "PriceS", "PS"]}, {"name": "For explanation", "variables": ["Sumtext", "SUM", "ANSWER", "Answertext"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "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": "

£[[0]]

", "gaps": [{"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, "minValue": "5-PS-PD", "maxValue": "5-PS-PD", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}]}], "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}