// Numbas version: exam_results_page_options {"name": "Allocating a budget", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Allocating a budget", "tags": [], "metadata": {"description": "

Calculate a percentage of a number.

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

The total budget for a tv advertising campaign is \\${separateThousands(budget,\",\")}.

\n

The budget is to be split as follows:

\n", "advice": "

Allocations are as follows:

\n

Channel 7: {ch7}% $\\times$ \\${separateThousands(budget,\",\")} = \\${separateThousands(budget*ch7/100,\",\")}

\n

Channel 9: {ch9}% $\\times$ \\${separateThousands(budget,\",\")} = \\${separateThousands(budget*ch9/100,\",\")}

\n

Channel 10: {ch10}% $\\times$ \\${separateThousands(budget,\",\")} = \\${separateThousands(budget*ch10/100,\",\")}

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(500000..1500000#50000)", "description": "", "templateType": "anything", "can_override": false}, "ch7": {"name": "ch7", "group": "Ungrouped variables", "definition": "random(10..50)", "description": "", "templateType": "anything", "can_override": false}, "ch9": {"name": "ch9", "group": "Ungrouped variables", "definition": "random(10..50)", "description": "", "templateType": "anything", "can_override": false}, "ch10": {"name": "ch10", "group": "Ungrouped variables", "definition": "100-ch9-ch7", "description": "", "templateType": "anything", "can_override": false}, "channel": {"name": "channel", "group": "Ungrouped variables", "definition": "[7,9,10][idx]", "description": "", "templateType": "anything", "can_override": false}, "minallocation": {"name": "minallocation", "group": "Ungrouped variables", "definition": "floor(allocation)", "description": "", "templateType": "anything", "can_override": false}, "maxallocation": {"name": "maxallocation", "group": "Ungrouped variables", "definition": "ceil(allocation)", "description": "", "templateType": "anything", "can_override": false}, "percentage": {"name": "percentage", "group": "Ungrouped variables", "definition": "[ch7,ch9,ch10][idx]", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "allocation": {"name": "allocation", "group": "Ungrouped variables", "definition": "percentage*budget/100", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["budget", "ch7", "ch9", "ch10", "channel", "minallocation", "maxallocation", "percentage", "idx", "allocation"], "variable_groups": [], "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": "

How much money is allocated to Channel {channel}?

\n

$[[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": "minallocation", "maxValue": "maxallocation", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Susan McGlynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2148/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}