// Numbas version: exam_results_page_options {"name": "Ratio Question", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "m", "n", "p", "batch", "total", "shade"], "name": "Ratio Question", "tags": ["ratio"], "preamble": {"css": "", "js": ""}, "advice": "

We first need to calculate how many batches of paint we can make. 

\n

From the red paint we have we could make {m} batches, from the yellow paint {n} batches and from the blue paint {p} batches. So overall we can make {batch} batches.

\n

Each batch will make {total} litres of {shade} paint, so we can make {batch} x {total} litres.

\n

For more information about ratios see this Mathcentre leaflet.

", "rulesets": {}, "parts": [{"prompt": "

I have {m*a} litres of red paint, {n*b} litres of yellow paint and {p*c} litres of blue paint. How many litres of {shade} paint can I make?

", "allowFractions": false, "variableReplacements": [], "maxValue": "{batch}*{total}", "minValue": "{batch}*{total}", "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "correctAnswerStyle": "plain"}], "extensions": [], "statement": "

In order to make {shade} paint I need to mix red, yellow and blue paint in the ratio {a} : {b} : {c}.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2,4,6,8)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(2..6 except [a,b])", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(3,5,7,9)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "m": {"definition": "random(3..7)", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "batch": {"definition": "min([m,n,p])", "templateType": "anything", "group": "Ungrouped variables", "name": "batch", "description": ""}, "n": {"definition": "random(3..8 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "p": {"definition": "random(2..9 except[m,n])", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "shade": {"definition": "random(\"stone\", \"pebble\", \"slate\")", "templateType": "anything", "group": "Ungrouped variables", "name": "shade", "description": ""}, "total": {"definition": "a+b+c", "templateType": "anything", "group": "Ungrouped variables", "name": "total", "description": ""}}, "metadata": {"description": "

Using three -part ratio and amounts of each colour available, calculate how much of a particular shade of paint can be made.

", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "type": "question", "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}