// Numbas version: finer_feedback_settings {"name": "Simon's copy of Q5 Paint and Alloy Ratio", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "
Ratios used in alloys and mixing paints
\nrebelmaths
"}, "tags": [], "ungrouped_variables": ["material", "ratio1", "ratio2", "ratio3", "weight", "ans1", "number0", "number1", "number2", "low", "ans2", "ans3", "ans4", "place", "worker", "worker2", "worker1", "ans5", "worker3", "subvalue", "money", "ratioab", "ratioc", "ans6", "ans7", "ans8", "hcf", "ratiod", "ratiodd", "vol", "totd", "ansd1", "ansd2", "ansd3", "gla", "m"], "variable_groups": [{"variables": ["coloura", "colourb", "ratio31", "ratio32", "vol3", "vol1", "vol2", "ratioa", "ans31", "ans32", "ans33", "ans34"], "name": "Unnamed group"}], "variables": {"ratioab": {"definition": "shuffle(2.1..4.4#0.1)[0..2]", "name": "ratioab", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans7": {"definition": "({money}/10)*ratioab[1]", "name": "ans7", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratioc": {"definition": "10 - (ratioab[0] + ratioab[1])", "name": "ratioc", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "gla": {"definition": "random(35..60#5)", "name": "gla", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans31": {"definition": "{ratio31}*{ratioa}", "name": "ans31", "group": "Unnamed group", "description": "", "templateType": "anything"}, "ansd3": {"definition": "floor((totd+ansd1+ansd2)/gla)", "name": "ansd3", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "worker": {"definition": "shuffle(5..12)[0..3]", "name": "worker", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "subvalue": {"definition": "(({worker3}/worker[2])/worker[1])", "name": "subvalue", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratio2": {"definition": "random(1..9 except {ratio1})", "name": "ratio2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "weight": {"definition": "{ratio3}*m", "name": "weight", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "low": {"definition": "lcm([number0,number1,number2])", "name": "low", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans2": {"definition": "({low}/number0)*1", "name": "ans2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "totd": {"definition": "vol*ratiod[0]", "name": "totd", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans5": {"definition": "({worker3}/worker[2]) + {subvalue} + {worker3}", "name": "ans5", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratioa": {"definition": "{vol3}/({ratio31}+{ratio32})", "name": "ratioa", "group": "Unnamed group", "description": "", "templateType": "anything"}, "ans4": {"definition": "({low}/number2)*7", "name": "ans4", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratio1": {"definition": "random(1..9)", "name": "ratio1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans3": {"definition": "({low}/number1)*5", "name": "ans3", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans34": {"definition": "({vol2}/{ratio31}) * {ratio32}", "name": "ans34", "group": "Unnamed group", "description": "", "templateType": "anything"}, "number1": {"definition": "random(8,9,11,12)", "name": "number1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "vol": {"definition": "random(20..26)", "name": "vol", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "vol2": {"definition": "random(0.5..1.5#0.5 except{vol3})", "name": "vol2", "group": "Unnamed group", "description": "", "templateType": "anything"}, "money": {"definition": "random(7050..9050#100)", "name": "money", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratio3": {"definition": "random(1..9 except {ratio1} except {ratio2})", "name": "ratio3", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "colourb": {"definition": "random('brown','yellow','white','grey','maroon') ", "name": "colourb", "group": "Unnamed group", "description": "", "templateType": "anything"}, "place": {"definition": "random('shop','business','factory')", "name": "place", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "worker3": {"definition": "{worker2} * worker[2]", "name": "worker3", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ansd1": {"definition": "vol*ratiod[1]", "name": "ansd1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "worker1": {"definition": "worker[0] * worker[1]", "name": "worker1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "vol3": {"definition": "random(2,2.5,5,8,10,15,20)", "name": "vol3", "group": "Unnamed group", "description": "", "templateType": "anything"}, "ans33": {"definition": "({vol1}/{ratio32}) * {ratio31}", "name": "ans33", "group": "Unnamed group", "description": "", "templateType": "anything"}, "hcf": {"definition": "gcd(4,12)", "name": "hcf", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "vol1": {"definition": "random(10..25 except{vol3})", "name": "vol1", "group": "Unnamed group", "description": "", "templateType": "anything"}, "coloura": {"definition": "random('red','black','pink','blue','green','purple')", "name": "coloura", "group": "Unnamed group", "description": "", "templateType": "anything"}, "worker2": {"definition": "{worker1} * worker[2]", "name": "worker2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "m": {"definition": "random(3..9)", "name": "m", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans1": {"definition": " (({weight}/{ratio3})*{ratio1}) + (({weight}/{ratio3})*{ratio2}) + {weight} ", "name": "ans1", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "number0": {"definition": "random(2,3,4,6)", "name": "number0", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans6": {"definition": "({money}/10)*ratioab[0]", "name": "ans6", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "material": {"definition": "shuffle(['manganese','silicon','copper','zinc','iron','cobalt','platinum'])[0..2]", "name": "material", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratiodd": {"definition": "15 - (ratiod[0]+ratiod[1])", "name": "ratiodd", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ansd2": {"definition": "vol*ratiodd", "name": "ansd2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratio31": {"definition": "random(1..7#2)", "name": "ratio31", "group": "Unnamed group", "description": "", "templateType": "anything"}, "number2": {"definition": "random(10,13,15,16)", "name": "number2", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans8": {"definition": "({money}/10)*{ratioc}", "name": "ans8", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ratiod": {"definition": "shuffle(2..7)[0..2]", "name": "ratiod", "group": "Ungrouped variables", "description": "", "templateType": "anything"}, "ans32": {"definition": "{ratio32}*{ratioa}", "name": "ans32", "group": "Unnamed group", "description": "", "templateType": "anything"}, "ratio32": {"definition": "random(2..6#2)", "name": "ratio32", "group": "Unnamed group", "description": "", "templateType": "anything"}}, "name": "Simon's copy of Q5 Paint and Alloy Ratio", "parts": [{"showCorrectAnswer": true, "steps": [{"customMarkingAlgorithm": "", "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "marks": 0, "unitTests": [], "showFeedbackIcon": true, "prompt": "Have a look back at Q4 (b). This is very similar.
", "type": "information", "variableReplacementStrategy": "originalfirst", "scripts": {}}], "showFeedbackIcon": true, "unitTests": [], "scripts": {}, "gaps": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "maxValue": "{ans1}", "unitTests": [], "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "minValue": "{ans1}", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "mustBeReduced": false, "marks": 1, "mustBeReducedPC": 0, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "allowFractions": false, "type": "numberentry"}], "type": "gapfill", "customMarkingAlgorithm": "", "prompt": "An alloy consists of $\\var{material[0]}$, $\\var{material[1]}$ and tin in the ratio $\\var{ratio1}$:$\\var{ratio2}$:$\\var{ratio3}$. If there are $\\var{weight}$kg of tin in the alloy, find its total weight.
\n(Answer in kg to the nearest whole number)
\n[[0]]kg
", "marks": 0, "stepsPenalty": 0, "sortAnswers": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}, {"showCorrectAnswer": true, "gaps": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "maxValue": "{ansd1}", "unitTests": [], "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "minValue": "{ansd1}", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "mustBeReduced": false, "marks": 1, "mustBeReducedPC": 0, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "allowFractions": false, "type": "numberentry"}, {"showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "maxValue": "{ansd2}", "unitTests": [], "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "minValue": "{ansd2}", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "mustBeReduced": false, "marks": 1, "mustBeReducedPC": 0, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "allowFractions": false, "type": "numberentry"}, {"showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerStyle": "plain", "maxValue": "{ansd3}", "unitTests": [], "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "minValue": "{ansd3}", "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "mustBeReduced": false, "marks": 1, "mustBeReducedPC": 0, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "allowFractions": false, "type": "numberentry"}], "showFeedbackIcon": true, "unitTests": [], "scripts": {}, "type": "gapfill", "customMarkingAlgorithm": "", "prompt": "A cocktail contains Vodka, Tia Maria and milk in the ratio $\\var{ratiod[0]}:\\var{ratiod[1]}:\\var{ratiodd}$. If $\\var{totd}$ml of Vodka is used to make this cocktail for a party, how much Tia Maria and milk is needed?
\nTia Maria needed = [[0]]ml
\nMilk needed = [[1]]ml
\nHow many $\\var{gla}$ ml glasses will this fill?
\nCount only full glasses!!
\n[[2]]glasses
", "marks": 0, "sortAnswers": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}, {"showCorrectAnswer": true, "gaps": [{"type": "numberentry", "unitTests": [], "strictPrecision": false, "precision": "2", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": true, "minValue": "{ans31}", "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the correct precision.", "precisionPartialCredit": 0, "showFeedbackIcon": true, "scripts": {}, "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "correctAnswerStyle": "plain", "maxValue": "{ans31}", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "precisionType": "dp", "correctAnswerFraction": false, "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst"}, {"type": "numberentry", "unitTests": [], "strictPrecision": false, "precision": "2", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": true, "minValue": "{ans32}", "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the correct precision.", "precisionPartialCredit": 0, "showFeedbackIcon": true, "scripts": {}, "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "correctAnswerStyle": "plain", "maxValue": "{ans32}", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "precisionType": "dp", "correctAnswerFraction": false, "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst"}, {"type": "numberentry", "unitTests": [], "strictPrecision": false, "precision": "2", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": true, "minValue": "{ans33}", "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the correct precision.", "precisionPartialCredit": 0, "showFeedbackIcon": true, "scripts": {}, "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "correctAnswerStyle": "plain", "maxValue": "{ans33}", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "precisionType": "dp", "correctAnswerFraction": false, "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst"}, {"type": "numberentry", "unitTests": [], "strictPrecision": false, "precision": "2", "notationStyles": ["plain", "en", "si-en"], "showPrecisionHint": true, "minValue": "{ans34}", "customMarkingAlgorithm": "", "precisionMessage": "You have not given your answer to the correct precision.", "precisionPartialCredit": 0, "showFeedbackIcon": true, "scripts": {}, "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "correctAnswerStyle": "plain", "maxValue": "{ans34}", "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "precisionType": "dp", "correctAnswerFraction": false, "marks": 1, "allowFractions": false, "variableReplacementStrategy": "originalfirst"}], "showFeedbackIcon": true, "unitTests": [], "scripts": {}, "type": "gapfill", "customMarkingAlgorithm": "", "prompt": "Paint is made up of colours $\\var{coloura}$ and $\\var{colourb}$ in the ratio $\\var{ratio31}:\\var{ratio32}$.
\ni) How many litres of each colour is in a $\\var{vol3}$ litre can of this paint?
\n$\\var{coloura}:$ [[0]]
\n$\\var{colourb}:$[[1]]
\nii) How many litres of $\\var{coloura}$ would have to be added to $\\var{vol1}$ litres of $\\var{colourb}$ to make the paint?
\n$\\var{coloura}:$[[2]]
\niii) How many litres of $\\var{colourb}$ would have to be added to $\\var{vol2}$ litres of $\\var{coloura}$ to make the paint?
\n$\\var{colourb}:$[[3]]
", "marks": 0, "sortAnswers": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "rulesets": {}, "preamble": {"css": "", "js": ""}, "statement": "Solve the following ratio questions:
", "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "extensions": [], "advice": "(a)
\n$\\frac{\\var{weight}}{\\var{ratio3}} \\times ({\\var{ratio1}+\\var{ratio2}+\\var{ratio3}}) = \\var{ans1}$
\n(b)
\nTia Maria:
\n$\\frac{\\var{totd}}{\\var{ratiod[0]}} \\times \\var{ratiod[1]} = \\var{ansd1}$
\nMilk:
\n$\\frac{\\var{totd}}{\\var{ratiod[0]}} \\times \\var{ratiodd} = \\var{ansd2}$
\nTotal volume $= \\var{totd} + \\var{ansd1} + \\var{ansd2}=\\var{totd+ansd1+ansd2}$
\nSince $\\frac{\\var{totd+ansd1+ansd2}}{\\var{gla}} =\\var{(totd+ansd1+ansd2)/gla}$ then the number of FULL glasses is $\\var{ansd3}$
\n(c)
\n$\\frac{\\var{vol3}}{(\\var{ratio31}+\\var{ratio32})} = \\var{precround(ratioa,4)}$
\n(i) $\\var{ratio31} \\times \\var{precround(ratioa,4)} = \\var{precround(ans31,2)}$
\n$\\var{ratio32} \\times \\var{precround(ratioa,4)} = \\var{precround(ans32,2)}$
\n(ii) $\\frac{\\var{vol1}}{\\var{ratio32}} \\times \\var{ratio31} = \\var{precround(ans33,2)}$
\n(iii) $\\frac{\\var{vol2}}{\\var{ratio31}} \\times \\var{ratio32} = \\var{precround(ans34,2)}$
\n", "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}