// Numbas version: finer_feedback_settings {"name": "Calculate CPT", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Calculate CPT", "tags": [], "metadata": {"description": "
Given number of TARPs and total price, calculate the Cost per TARP.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "A media agency buys {tarps} TARPs from a TV station for \\${separateThousands(price,\",\")}
", "advice": "The cost for {tarps} TARPs is \\${separateThousands(price,\",\")}
\nso the cost for one TARP (the CPT) is $\\frac{\\var{separateThousands(price,\",\")}}{\\var{tarps}} = \\$\\var{CPT}$
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"cptfloor": {"name": "cptfloor", "group": "Ungrouped variables", "definition": "CPT-0.01", "description": "", "templateType": "anything", "can_override": false}, "cptceil": {"name": "cptceil", "group": "Ungrouped variables", "definition": "CPT+0.01", "description": "", "templateType": "anything", "can_override": false}, "CPT": {"name": "CPT", "group": "Ungrouped variables", "definition": "precround(price/tarps,2)", "description": "", "templateType": "anything", "can_override": false}, "tarps": {"name": "tarps", "group": "Ungrouped variables", "definition": "random(75..150)", "description": "", "templateType": "anything", "can_override": false}, "price": {"name": "price", "group": "Ungrouped variables", "definition": "random(10000..20000#10)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["cptfloor", "cptceil", "CPT", "tarps", "price"], "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 is the average cost per tarp (CPT)?
\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": "CPTfloor", "maxValue": "CPTceil", "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", "type": "question", "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/"}]}