// Numbas version: exam_results_page_options {"name": "Basic Percentages 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Basic Percentages 2", "metadata": {"description": "

Basic Percentages Question

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "rulesets": {}, "preamble": {"js": "", "css": ""}, "functions": {}, "variable_groups": [], "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

To answer this question, we need to first find $1$% and then multiply by $100$ to get the original amount in the bottle.

\n

This is given by the formula: $\\frac{\\text{Amount given}}{\\text{Percentage}} \\times 100$

\n

In this question, $\\frac{\\var{a}}{\\var{b}} \\times 100 = \\var{ans0}$mls

\n

Next, for part b, subtract the amount already used from the total amount in the bottle to get the amount that is left: $\\var{ans0} - \\var{a} = \\var{ans}$mls

\n

For part c, you need to divide the amount used by the doseage amount which is 2ml: $\\frac{\\var{a}}{2} = \\var{ans1}$ doses

\n

Finally, for part d, divide your answer for part b by the doseage amount, which is 2ml: $\\frac{\\var{ans}}{2} = \\var{ans2}$ doses

", "parts": [{"gaps": [{"mustBeReduced": false, "correctAnswerFraction": false, "customName": "", "mustBeReducedPC": 0, "maxValue": "ans0", "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFractionHint": true, "variableReplacements": [], "unitTests": [], "correctAnswerStyle": "plain", "type": "numberentry", "minValue": "ans0", "notationStyles": ["plain", "en", "si-en"], "useCustomName": false}], "prompt": "

A bottle containing a drug is used for treating a patient and you are tasked with working out when to order in a new bottle. $\\var{b}$% of the bottle has been used so far which is $\\var{a}$mls. How many mls does the bottle hold?

\n

[[0]] mls

", "customName": "", "sortAnswers": false, "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "unitTests": [], "type": "gapfill", "useCustomName": false}, {"gaps": [{"mustBeReduced": false, "correctAnswerFraction": false, "customName": "", "mustBeReducedPC": 0, "maxValue": "ans", "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFractionHint": true, "variableReplacements": [], "unitTests": [], "correctAnswerStyle": "plain", "type": "numberentry", "minValue": "ans", "notationStyles": ["plain", "en", "si-en"], "useCustomName": false}], "prompt": "

How many mls are left in the bottle?

\n

[[0]] mls

", "customName": "", "sortAnswers": false, "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "unitTests": [], "type": "gapfill", "useCustomName": false}, {"gaps": [{"mustBeReduced": false, "correctAnswerFraction": false, "customName": "", "mustBeReducedPC": 0, "maxValue": "ans1", "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFractionHint": true, "variableReplacements": [], "unitTests": [], "correctAnswerStyle": "plain", "type": "numberentry", "minValue": "ans1", "notationStyles": ["plain", "en", "si-en"], "useCustomName": false}], "prompt": "

If one dose of the drug is 2ml, how many doses have been given so far?

\n

[[0]] doses

", "customName": "", "sortAnswers": false, "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "unitTests": [], "type": "gapfill", "useCustomName": false}, {"gaps": [{"mustBeReduced": false, "correctAnswerFraction": false, "customName": "", "mustBeReducedPC": 0, "maxValue": "ans2", "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst", "showFractionHint": true, "variableReplacements": [], "unitTests": [], "correctAnswerStyle": "plain", "type": "numberentry", "minValue": "ans2", "notationStyles": ["plain", "en", "si-en"], "useCustomName": false}], "prompt": "

Using the same dosage as part c, how many more doses can be given from the bottle?

\n

[[0]] doses

", "customName": "", "sortAnswers": false, "scripts": {}, "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "marks": 0, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "unitTests": [], "type": "gapfill", "useCustomName": false}], "ungrouped_variables": ["a", "b", "ans", "ans1", "ans2", "ans0"], "variables": {"ans": {"description": "", "name": "ans", "definition": "(({a}/{b})*100)-a", "templateType": "anything", "group": "Ungrouped variables"}, "a": {"description": "", "name": "a", "definition": "random(2..10)*b", "templateType": "anything", "group": "Ungrouped variables"}, "ans2": {"description": "", "name": "ans2", "definition": "ans/2", "templateType": "anything", "group": "Ungrouped variables"}, "ans1": {"description": "", "name": "ans1", "definition": "a/2", "templateType": "anything", "group": "Ungrouped variables"}, "ans0": {"description": "", "name": "ans0", "definition": "a+ans", "templateType": "anything", "group": "Ungrouped variables"}, "b": {"description": "", "name": "b", "definition": "random(10..50#10)", "templateType": "anything", "group": "Ungrouped variables"}}, "extensions": [], "statement": "", "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}, {"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}]}], "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}, {"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}]}