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

Find a percentage of a number (number of TARPs spent on breakfast programs), then divide by the number of programs to find the average number of TARPs per program.

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

You have allocated {percent}% of your {TARPs} weekly TARPs to Off-Peak Programs.

\n

You have bought {BPspots} spots that are Off-peak programs.

", "advice": "

Number of TARPs spent on Off-Peak Programs = {percent}% $\\times$ {tarps} = {percent * tarps / 100}

\n

Average number of TARPs per Off-Peak program = {(percent * tarps / 100)} $\\div$ {bpspots} = {(percent * tarps / 100)/bpspots}

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"percent": {"name": "percent", "group": "Ungrouped variables", "definition": "factor1*factor2*10", "description": "", "templateType": "anything", "can_override": false}, "tarps": {"name": "tarps", "group": "Ungrouped variables", "definition": "factor3* random(1..12)*10", "description": "", "templateType": "anything", "can_override": false}, "bpspots": {"name": "bpspots", "group": "Ungrouped variables", "definition": "factor2*factor3", "description": "", "templateType": "anything", "can_override": false}, "avg": {"name": "avg", "group": "Ungrouped variables", "definition": "(percent*tarps)/(100*bpspots)", "description": "", "templateType": "anything", "can_override": false}, "factor1": {"name": "factor1", "group": "Ungrouped variables", "definition": "[1,1,2,1,2,1,2,3][idx]", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..7)", "description": "", "templateType": "anything", "can_override": false}, "factor2": {"name": "factor2", "group": "Ungrouped variables", "definition": "[2,3,2,5,3,7,4,3][idx]", "description": "", "templateType": "anything", "can_override": false}, "factor3": {"name": "factor3", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["percent", "tarps", "bpspots", "avg", "factor1", "idx", "factor2", "factor3"], "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": "

What is the average Off-Peak TARP?

", "minValue": "avg", "maxValue": "avg", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "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/"}]}