// Numbas version: finer_feedback_settings {"name": "Hannah's copy of Fractions - Worded Questions", "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-NonCommercial-ShareAlike 4.0 International", "description": "
A variety of worded fraction questions.
"}, "name": "Hannah's copy of Fractions - Worded Questions", "variables": {"r": {"group": "Ungrouped variables", "name": "r", "templateType": "anything", "definition": "random(3..7) //random number of pizza slices", "description": ""}, "d": {"group": "Ungrouped variables", "name": "d", "templateType": "anything", "definition": "random(g*20..g*50#g) // random value for TV divisible by the denominator", "description": ""}, "j": {"group": "Ungrouped variables", "name": "j", "templateType": "anything", "definition": "random(2..15) //random denominator", "description": ""}, "o": {"group": "Ungrouped variables", "name": "o", "templateType": "anything", "definition": "random(1..p-1) //random numerator value", "description": ""}, "n": {"group": "Ungrouped variables", "name": "n", "templateType": "anything", "definition": "random(2..15) //random denominator", "description": ""}, "p": {"group": "Ungrouped variables", "name": "p", "templateType": "anything", "definition": "random(2..15) //random denominator", "description": ""}, "den": {"group": "Ungrouped variables", "name": "den", "templateType": "anything", "definition": "p*n/gcd_ans", "description": ""}, "gcd_qr": {"group": "Ungrouped variables", "name": "gcd_qr", "templateType": "anything", "definition": "gcd(16,16-(q+r))", "description": ""}, "f": {"group": "Ungrouped variables", "name": "f", "templateType": "anything", "definition": "random(1..g-2) // random value for numerator in sale reduction", "description": ""}, "l": {"group": "Ungrouped variables", "name": "l", "templateType": "anything", "definition": "random(2..15) //random denominator", "description": ""}, "gcd_ans": {"group": "Ungrouped variables", "name": "gcd_ans", "templateType": "anything", "definition": "gcd((p*m+n*o),p*n)", "description": ""}, "q": {"group": "Ungrouped variables", "name": "q", "templateType": "anything", "definition": "random(3..7) //random number of pizza slices", "description": ""}, "num": {"group": "Ungrouped variables", "name": "num", "templateType": "anything", "definition": "(p*m+n*o)/gcd_ans", "description": ""}, "m": {"group": "Ungrouped variables", "name": "m", "templateType": "anything", "definition": "random(1..n-1) //random numerator value", "description": ""}, "h": {"group": "Ungrouped variables", "name": "h", "templateType": "anything", "definition": "random(1..j-1) //random numerator value", "description": ""}, "k": {"group": "Ungrouped variables", "name": "k", "templateType": "anything", "definition": "random(1..l-1) //random numerator value", "description": ""}, "gcd_fg": {"group": "Ungrouped variables", "name": "gcd_fg", "templateType": "anything", "definition": "gcd(f,g)", "description": ""}, "gcd_op": {"group": "Ungrouped variables", "name": "gcd_op", "templateType": "anything", "definition": "gcd(o,p)", "description": ""}, "g": {"group": "Ungrouped variables", "name": "g", "templateType": "anything", "definition": "random(3..5) //random value for denominator of sale reduction", "description": ""}, "gcd_mn": {"group": "Ungrouped variables", "name": "gcd_mn", "templateType": "anything", "definition": "gcd(m,n)", "description": ""}, "gcd_b": {"group": "Ungrouped variables", "name": "gcd_b", "templateType": "anything", "definition": "gcd(h*j,k*l)", "description": ""}}, "preamble": {"js": "", "css": ""}, "parts": [{"mustBeReducedPC": 0, "maxValue": "d-((f/g)*d)", "variableReplacements": [], "type": "numberentry", "prompt": "In a sale a TV is reduced by $\\frac{\\var{f/gcd_fg}}{\\var{g/gcd_fg}}$ from $£\\var{d}$. How much does it cost now?
", "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": true, "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "unitTests": [], "marks": "1", "allowFractions": true, "minValue": "d-((f/g)*d)", "showFeedbackIcon": true, "mustBeReduced": false}, {"mustBeReducedPC": 0, "maxValue": "(16-q-r)/8", "variableReplacements": [], "type": "numberentry", "prompt": "You and your friend order two medium pizzas (8 slices per pizza). If you eat $\\var{q}$ slices and your friend eats $\\var{r}$ slices, how much pizza is left over?
\nGive your answer as a fraction of a pizza.
", "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": true, "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "notationStyles": ["plain", "en", "si-en"], "showCorrectAnswer": true, "unitTests": [], "marks": "1", "allowFractions": true, "minValue": "(16-q-r)/8", "showFeedbackIcon": true, "mustBeReduced": true}, {"variableReplacements": [], "type": "patternmatch", "prompt": "To get to work you need to ride your bike for $\\frac{\\var{m/gcd_mn}}{\\var{n/gcd_mn}}$ of a mile followed by walking $\\frac{\\var{o/gcd_op}}{\\var{p/gcd_op}}$ of a mile. How far do you travel in total?
\nGive your answer as a fraction a/b expressed in its simplest form.
", "extendBaseMarkingAlgorithm": true, "answer": "{num}/{den}", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "matchMode": "regex", "showCorrectAnswer": true, "unitTests": [], "marks": "1", "displayAnswer": "", "showFeedbackIcon": true}], "rulesets": {}, "variablesTest": {"maxRuns": 100, "condition": "q+r>8\nm/n +o/p <> 1"}, "advice": "", "statement": "Answer the fraction word problems below.
", "functions": {}, "tags": [], "variable_groups": [], "ungrouped_variables": ["f", "g", "d", "j", "h", "l", "k", "m", "o", "p", "n", "q", "r", "gcd_b", "gcd_mn", "gcd_op", "gcd_ans", "num", "den", "gcd_fg", "gcd_qr"], "extensions": [], "type": "question", "contributors": [{"name": "Hannah Bartholomew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/530/"}]}]}], "contributors": [{"name": "Hannah Bartholomew", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/530/"}]}