// Numbas version: exam_results_page_options {"name": "Calculate proportion of potential audience that watch an ad", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate proportion of potential audience that watch an ad", "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 {separateThousands(viewers,\",\")} of the potential audience will watch the ad through to the end.

", "advice": "

We need to calculate the proportion {separateThousands(viewers,\",\")} out of {separateThousands(pa,\",\")}

\n

i.e. $\\frac{\\var{separateThousands(viewers,\",\")}}{\\var{separateThousands(pa,\",\")}} = \\var{percent/100} = \\var{percent}\\%$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(1..150)*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": "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": "

What percentage of the potential audience are expected to watch the ad to the end?

\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": "{percent}", "maxValue": "{percent}", "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/"}]}