// Numbas version: exam_results_page_options {"name": "Tablet combinations (20, 40, 150 mg)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "c", "dose", "aans", "bans", "cans"], "variables": {"cans": {"description": "", "templateType": "anything", "name": "cans", "definition": "random(0..2)", "group": "Ungrouped variables"}, "aans": {"description": "", "templateType": "anything", "name": "aans", "definition": "random(0..1)", "group": "Ungrouped variables"}, "a": {"description": "

20,40,100,150,200,250

", "templateType": "anything", "name": "a", "definition": "20", "group": "Ungrouped variables"}, "dose": {"description": "", "templateType": "anything", "name": "dose", "definition": "aans*a+b*bans+c*cans", "group": "Ungrouped variables"}, "c": {"description": "", "templateType": "anything", "name": "c", "definition": "150", "group": "Ungrouped variables"}, "bans": {"description": "", "templateType": "anything", "name": "bans", "definition": "random(2..4)", "group": "Ungrouped variables"}, "b": {"description": "

20,40,100,150,200,250

", "templateType": "anything", "name": "b", "definition": "40", "group": "Ungrouped variables"}}, "extensions": [], "preamble": {"css": "", "js": ""}, "functions": {}, "parts": [{"prompt": "

A medication is available in $\\var{a}$ mg, $\\var{b}$ mg and $\\var{c}$ mg strengths. What is the best combination of tablets to give a dose of $\\var{dose}$ mg without halving tablets?

\n

[[0]] $\\times $ $\\var{a}$ mg tablets

\n

[[1]] $\\times $ $\\var{b}$ mg tablets 

\n

[[2]] $\\times $ $\\var{c}$ mg tablets 

", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "variableReplacements": [], "customName": "", "showCorrectAnswer": true, "marks": 0, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "scripts": {}, "customMarkingAlgorithm": "", "useCustomName": false, "gaps": [{"type": "numberentry", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "correctAnswerFraction": false, "customName": "", "maxValue": "aans", "showCorrectAnswer": true, "marks": 1, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "customMarkingAlgorithm": "", "useCustomName": false, "allowFractions": false, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "minValue": "aans", "showFractionHint": true, "unitTests": []}, {"type": "numberentry", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "correctAnswerFraction": false, "customName": "", "maxValue": "bans", "showCorrectAnswer": true, "marks": 1, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "customMarkingAlgorithm": "", "useCustomName": false, "allowFractions": false, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "minValue": "bans", "showFractionHint": true, "unitTests": []}, {"type": "numberentry", "showFeedbackIcon": true, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "correctAnswerFraction": false, "customName": "", "maxValue": "cans", "showCorrectAnswer": true, "marks": 1, "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "customMarkingAlgorithm": "", "useCustomName": false, "allowFractions": false, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "minValue": "cans", "showFractionHint": true, "unitTests": []}], "sortAnswers": false, "unitTests": []}], "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "rulesets": {}, "variable_groups": [], "metadata": {"description": "

Given a dose and available tablets, determine the best combination of tablets, to minimise the number of tablets and avoid dividing tablets. Uses 20, 40 and 150 mg.


", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "name": "Tablet combinations (20, 40, 150 mg)", "statement": "

Evaluate the following without using a calculator.

\n

If you are unsure of how to do a question, click on Reveal answers to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again.

", "advice": "

To minimise the number of tablets that a patient has to take we use stronger tablets first to get the desired dose of $\\var{dose}$ mg.

\n

That is, we can use $\\var{cans}$ tablets of $\\var{c}$ mg. Then $\\var{bans}$ tablets of $\\var{b}$ mg. And then $\\var{aans}$ tablets of $\\var{a}$ mg. 

", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}