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

Given budget and cost per acquistion, how many sales were created?

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

The media budget for an advertising campaign was \\${separateThousands(budget,\",\")}.

\n

The CPA (Cost per Acqusition) was \\${separateThousands(CPA,\",\")}.

", "advice": "

Number of sales = budget $\\div$ CPA = \\${separateThousands(budget,\",\")} $\\div$ \\${CPA} = {separateThousands(int(sales),\",\")}

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cpa": {"name": "cpa", "group": "Ungrouped variables", "definition": "random(1..100)", "description": "", "templateType": "anything", "can_override": false}, "budget": {"name": "budget", "group": "Ungrouped variables", "definition": "random(10..1000)*1000", "description": "", "templateType": "anything", "can_override": false}, "sales": {"name": "sales", "group": "Ungrouped variables", "definition": "budget/cpa", "description": "", "templateType": "anything", "can_override": false}, "minsales": {"name": "minsales", "group": "Ungrouped variables", "definition": "floor(sales)", "description": "", "templateType": "anything", "can_override": false}, "maxsales": {"name": "maxsales", "group": "Ungrouped variables", "definition": "ceil(sales)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cpa", "budget", "sales", "minsales", "maxsales"], "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 sales did the campaign deliver? Give your answer to the nearest whole number of sales.

", "minValue": "{minsales}", "maxValue": "{maxsales}", "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": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}