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

Find a percentage of a given population. Percentage and population are both randomised.

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

A digital advertising campaign has a budget of \\${separateThousands(budget,\",\")} and a potential audience of {separateThousands(pa,\",\")}.

\n

It is expected that $\\var{percent}\\%$ of the potential audience will watch the ad through to the end.

", "advice": "

We need to calculate {percent}% of {separateThousands(pa,\",\")}

\n

{percent}% $\\times$ {separateThousands(pa,\",\")} = {separateThousands(viewers,\",\")}

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(1..100)*10000", "description": "", "templateType": "anything", "can_override": false}, "pa": {"name": "pa", "group": "Ungrouped variables", "definition": "random(5..50)*10000", "description": "", "templateType": "anything", "can_override": false}, "percent": {"name": "percent", "group": "Ungrouped variables", "definition": "random(1..6)*10", "description": "", "templateType": "anything", "can_override": false}, "viewers": {"name": "viewers", "group": "Ungrouped variables", "definition": "percent/100*pa", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["budget", "pa", "percent", "viewers"], "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": "

How many people are expected to watch the ad to the end?

", "minValue": "viewers", "maxValue": "viewers", "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/"}]}