// Numbas version: finer_feedback_settings {"name": "Paint and Alloy Ratio L1+2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "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"], "name": "Paint and Alloy Ratio L1+2", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "
Part 1:
\n$(\\frac{\\var{weight}}{\\var{ratio3}} \\times {\\var{ratio1}}) + (\\frac{\\var{weight}}{\\var{ratio3}} \\times {\\var{ratio2}}) + \\var{weight} = \\var{ans1}$
\nPart 2:
\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}$
\nGlasses
\n$\\frac{(\\var{totd} + \\var{ansd1} + \\var{ansd2})}{\\var{gla}}) = \\var{ansd3}$
\nPart 3:
\n$\\frac{\\var{vol3}}{(\\var{ratio31}+\\var{ratio32})} = \\var{ratioa}$
\n$\\var{ratio31} \\times \\var{ratioa} = \\var{ans31}$
\n$\\var{ratio32} \\times \\var{ratioa} = \\var{ans32}$
\n$\\frac{\\var{vol1}}{\\var{ratio32}} \\times \\var{ratio31} = \\var{ans33}$
\n$\\frac{\\var{vol2}}{\\var{ratio31}} \\times \\var{ratio32} = \\var{ans34}$
\n", "rulesets": {}, "parts": [{"stepsPenalty": 0, "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
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans1}", "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "A mixture contains orange juice, pineapple juice and apple juice in the ratio $\\var{ratiod[0]}:\\var{ratiod[1]}:\\var{ratiodd}$. If $\\var{totd}$ml of orange juice is used to make this cocktail for a party, how much pineapple juice and apple juice is needed?
\nPineapple juice needed = [[0]]ml
\nApple juice needed = [[1]]ml
\nHow many $\\var{gla}$ ml glasses will this fill?
\nCount only full glasses!!
\n[[2]]glasses
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ansd1}", "minValue": "{ansd1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{ansd2}", "minValue": "{ansd2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"allowFractions": false, "variableReplacements": [], "maxValue": "{ansd3}", "minValue": "{ansd3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "Paint is made up of colours $\\var{coloura}$ and $\\var{colourb}$ in the ratio $\\var{ratio31}:\\var{ratio32}$.
\ni) How much of each colour is in a $\\var{vol3}$ litre can of this paint (round to 2 decimal place)?
\n$\\var{coloura}:$ [[0]]L
\n$\\var{colourb}:$[[1]]L
\nii) How much of $\\var{coloura}$ has to be added to $\\var{vol1}$ litres of $\\var{colourb}$ to make the paint?
\n(Round to 2 decimal places)
\n(Remember to use units, i.e. L for litres)
\n$\\var{coloura}:$[[2]]L
\niii) How much of $\\var{colourb}$ has to be added to $\\var{vol2}$ litres of $\\var{coloura}$ to make the paint?
\n(Round to 2 decimal places)
\n$\\var{colourb}:$[[3]]L
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans31}", "strictPrecision": false, "minValue": "{ans31}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans32}", "strictPrecision": false, "minValue": "{ans32}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans33}", "strictPrecision": false, "minValue": "{ans33}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans34}", "strictPrecision": false, "minValue": "{ans34}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "Solve the following ratio questions:
", "variable_groups": [{"variables": ["coloura", "colourb", "ratio31", "ratio32", "vol3", "vol1", "vol2", "ratioa", "ans31", "ans32", "ans33", "ans34"], "name": "Unnamed group"}], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"ans8": {"definition": "({money}/10)*{ratioc}", "templateType": "anything", "group": "Ungrouped variables", "name": "ans8", "description": ""}, "ratio32": {"definition": "random(2..6#2)", "templateType": "anything", "group": "Unnamed group", "name": "ratio32", "description": ""}, "weight": {"definition": "{ratio3}*m", "templateType": "anything", "group": "Ungrouped variables", "name": "weight", "description": ""}, "vol": {"definition": "random(20..26)", "templateType": "anything", "group": "Ungrouped variables", "name": "vol", "description": ""}, "money": {"definition": "random(7050..9050#100)", "templateType": "anything", "group": "Ungrouped variables", "name": "money", "description": ""}, "ans2": {"definition": "({low}/number0)*1", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "({low}/number1)*5", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "ans4": {"definition": "({low}/number2)*7", "templateType": "anything", "group": "Ungrouped variables", "name": "ans4", "description": ""}, "ans5": {"definition": "({worker3}/worker[2]) + {subvalue} + {worker3}", "templateType": "anything", "group": "Ungrouped variables", "name": "ans5", "description": ""}, "ans6": {"definition": "({money}/10)*ratioab[0]", "templateType": "anything", "group": "Ungrouped variables", "name": "ans6", "description": ""}, "ans7": {"definition": "({money}/10)*ratioab[1]", "templateType": "anything", "group": "Ungrouped variables", "name": "ans7", "description": ""}, "ratio1": {"definition": "random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "ratio1", "description": ""}, "ratio3": {"definition": "random(1..9 except {ratio1} except {ratio2})", "templateType": "anything", "group": "Ungrouped variables", "name": "ratio3", "description": ""}, "ratio2": {"definition": "random(1..9 except {ratio1})", "templateType": "anything", "group": "Ungrouped variables", "name": "ratio2", "description": ""}, "colourb": {"definition": "random('brown','yellow','white','grey','maroon') ", "templateType": "anything", "group": "Unnamed group", "name": "colourb", "description": ""}, "coloura": {"definition": "random('red','black','pink','blue','green','purple')", "templateType": "anything", "group": "Unnamed group", "name": "coloura", "description": ""}, "ratioab": {"definition": "shuffle(2.1..4.4#0.1)[0..2]", "templateType": "anything", "group": "Ungrouped variables", "name": "ratioab", "description": ""}, "ratio31": {"definition": "random(1..7#2)", "templateType": "anything", "group": "Unnamed group", "name": "ratio31", "description": ""}, "totd": {"definition": "vol*ratiod[0]", "templateType": "anything", "group": "Ungrouped variables", "name": "totd", "description": ""}, "subvalue": {"definition": "(({worker3}/worker[2])/worker[1])", "templateType": "anything", "group": "Ungrouped variables", "name": "subvalue", "description": ""}, "hcf": {"definition": "gcd(4,12)", "templateType": "anything", "group": "Ungrouped variables", "name": "hcf", "description": ""}, "low": {"definition": "lcm([number0,number1,number2])", "templateType": "anything", "group": "Ungrouped variables", "name": "low", "description": ""}, "ans1": {"definition": " (({weight}/{ratio3})*{ratio1}) + (({weight}/{ratio3})*{ratio2}) + {weight} ", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ansd1": {"definition": "vol*ratiod[1]", "templateType": "anything", "group": "Ungrouped variables", "name": "ansd1", "description": ""}, "ansd3": {"definition": "floor((totd+ansd1+ansd2)/gla)", "templateType": "anything", "group": "Ungrouped variables", "name": "ansd3", "description": ""}, "ansd2": {"definition": "vol*ratiodd", "templateType": "anything", "group": "Ungrouped variables", "name": "ansd2", "description": ""}, "ratiod": {"definition": "shuffle(2..7)[0..2]", "templateType": "anything", "group": "Ungrouped variables", "name": "ratiod", "description": ""}, "ratioa": {"definition": "{vol3}/({ratio31}+{ratio32})", "templateType": "anything", "group": "Unnamed group", "name": "ratioa", "description": ""}, "ratioc": {"definition": "10 - (ratioab[0] + ratioab[1])", "templateType": "anything", "group": "Ungrouped variables", "name": "ratioc", "description": ""}, "material": {"definition": "shuffle(['manganese','silicon','copper','zinc','iron','cobalt','platinum'])[0..2]", "templateType": "anything", "group": "Ungrouped variables", "name": "material", "description": ""}, "worker": {"definition": "shuffle(5..12)[0..3]", "templateType": "anything", "group": "Ungrouped variables", "name": "worker", "description": ""}, "number2": {"definition": "random(10,13,15,16)", "templateType": "anything", "group": "Ungrouped variables", "name": "number2", "description": ""}, "number0": {"definition": "random(2,3,4,6)", "templateType": "anything", "group": "Ungrouped variables", "name": "number0", "description": ""}, "vol2": {"definition": "random(0.5..1.5#0.5 except{vol3})", "templateType": "anything", "group": "Unnamed group", "name": "vol2", "description": ""}, "ans31": {"definition": "{ratio31}*{ratioa}", "templateType": "anything", "group": "Unnamed group", "name": "ans31", "description": ""}, "ans32": {"definition": "{ratio32}*{ratioa}", "templateType": "anything", "group": "Unnamed group", "name": "ans32", "description": ""}, "ans33": {"definition": "({vol1}/{ratio32}) * {ratio31}", "templateType": "anything", "group": "Unnamed group", "name": "ans33", "description": ""}, "ans34": {"definition": "({vol2}/{ratio31}) * {ratio32}", "templateType": "anything", "group": "Unnamed group", "name": "ans34", "description": ""}, "vol3": {"definition": "random(2,2.5,5,8,10,15,20)", "templateType": "anything", "group": "Unnamed group", "name": "vol3", "description": ""}, "worker1": {"definition": "worker[0] * worker[1]", "templateType": "anything", "group": "Ungrouped variables", "name": "worker1", "description": ""}, "gla": {"definition": "random(35..60#5)", "templateType": "anything", "group": "Ungrouped variables", "name": "gla", "description": ""}, "worker3": {"definition": "{worker2} * worker[2]", "templateType": "anything", "group": "Ungrouped variables", "name": "worker3", "description": ""}, "worker2": {"definition": "{worker1} * worker[2]", "templateType": "anything", "group": "Ungrouped variables", "name": "worker2", "description": ""}, "m": {"definition": "random(3..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "number1": {"definition": "random(8,9,11,12)", "templateType": "anything", "group": "Ungrouped variables", "name": "number1", "description": ""}, "place": {"definition": "random('shop','business','factory')", "templateType": "anything", "group": "Ungrouped variables", "name": "place", "description": ""}, "ratiodd": {"definition": "15 - (ratiod[0]+ratiod[1])", "templateType": "anything", "group": "Ungrouped variables", "name": "ratiodd", "description": ""}, "vol1": {"definition": "random(10..25 except{vol3})", "templateType": "anything", "group": "Unnamed group", "name": "vol1", "description": ""}}, "metadata": {"description": "Ratios used in alloys and mixing paints
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}]}], "contributors": [{"name": "steve kilgallon", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/268/"}]}