// Numbas version: exam_results_page_options {"name": "NA2 - Dosage calculation 1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA2 - Dosage calculation 1", "tags": [], "metadata": {"description": "

Whole number division in a context of number of tablets per day based on a tablet size and a daily prescribed amount.

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

You prescribe a patient {p} milligrams (mg) per day of a particular drug. The drug is available in tablets of {t} milligrams (mg). How many tablets should you instruct the patient to take each day?

", "advice": "\n\n\n\n\n\n
\n
\n

Since each tablet is {t} mg of the necessary drug, we must prescribe enough tablets to add up to {p} milligrams. By dividing {p} by {t} we can find out how many {t} mg tablet make up {p} mg, which gives {answer}.

\n
\n
\n

Use this link to find some resources which will help you revise this topic.

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"p": {"name": "p", "group": "Ungrouped variables", "definition": "random(300 .. 600#50)", "description": "", "templateType": "randrange", "can_override": false}, "t": {"name": "t", "group": "Ungrouped variables", "definition": "random(100 .. 300#50)", "description": "", "templateType": "randrange", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "p/t", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "mod(p,t)=0", "maxRuns": 100}, "ungrouped_variables": ["p", "t", "answer"], "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": "

The daily number of tablets prescribed should be: [[0]]

\n

", "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": "{answer}", "maxValue": "{answer}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}]}], "contributors": [{"name": "Will Morgan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/21933/"}]}