// Numbas version: finer_feedback_settings {"name": "How many sales were delivered?", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "How many sales were delivered?", "tags": [], "metadata": {"description": "
Given Campaign budget and cost per acquisition, calculate the number of sales.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "A campaign cost \\${separateThousands(campaign,\",\")}.
\nThe Cost per Acquisition (CPA) was \\${CPA}.
", "advice": "Number of sales = Cost of campaign $\\div$ CPA = \\${separateThousands(campaign,\",\")} $\\div$ \\${CPA} = {separateThousands(sales,\",\")}
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"campaign": {"name": "campaign", "group": "Ungrouped variables", "definition": "cpa*sales", "description": "", "templateType": "anything", "can_override": false}, "cpa": {"name": "cpa", "group": "Ungrouped variables", "definition": "random(1..100)", "description": "", "templateType": "anything", "can_override": false}, "sales": {"name": "sales", "group": "Ungrouped variables", "definition": "random(flatten([10..100#10,100..1000#100,1000..10000#1000]))", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["campaign", "cpa", "sales"], "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?
", "minValue": "sales", "maxValue": "sales", "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", "type": "question", "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/"}]}