// Numbas version: finer_feedback_settings {"name": "Lois's copy of 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": [{"functions": {}, "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"], "name": "Lois's copy of Hannah's copy of Fractions - Worded Questions", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"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?
", "allowFractions": true, "variableReplacements": [], "maxValue": "d-((f/g)*d)", "minValue": "d-((f/g)*d)", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": false, "scripts": {}, "marks": "1", "type": "numberentry"}, {"prompt": "You and your friend order two medium pizzas (8 slices). 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.
", "allowFractions": true, "variableReplacements": [], "maxValue": "(16-q-r)/8", "minValue": "(16-q-r)/8", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": false, "scripts": {}, "marks": "1", "type": "numberentry"}, {"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.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": false, "displayAnswer": "", "scripts": {}, "answer": "{num}/{den}", "marks": "1", "type": "patternmatch"}], "extensions": [], "statement": "Answer the fraction word problems below.
", "type": "question", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "q+r>8\nm/n +o/p <> 1"}, "question_groups": [{"pickingStrategy": "all-ordered", "name": "", "questions": [], "pickQuestions": 0}], "variables": {"gcd_b": {"definition": "gcd(h*j,k*l)", "templateType": "anything", "group": "Ungrouped variables", "name": "gcd_b", "description": ""}, "gcd_ans": {"definition": "gcd((p*m+n*o),p*n)", "templateType": "anything", "group": "Ungrouped variables", "name": "gcd_ans", "description": ""}, "gcd_fg": {"definition": "gcd(f,g)", "templateType": "anything", "group": "Ungrouped variables", "name": "gcd_fg", "description": ""}, "d": {"definition": "random(g*20..g*50#g) // random value for TV divisible by the denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "random(3..5) //random value for denominator of sale reduction", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "random(1..g-2) // random value for numerator in sale reduction", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "h": {"definition": "random(1..j-1) //random numerator value", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}, "k": {"definition": "random(1..l-1) //random numerator value", "templateType": "anything", "group": "Ungrouped variables", "name": "k", "description": ""}, "j": {"definition": "random(2..15) //random denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "j", "description": ""}, "m": {"definition": "random(1..n-1) //random numerator value", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "l": {"definition": "random(2..15) //random denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "l", "description": ""}, "o": {"definition": "random(1..p-1) //random numerator value", "templateType": "anything", "group": "Ungrouped variables", "name": "o", "description": ""}, "n": {"definition": "random(2..15) //random denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "q": {"definition": "random(3..7) //random number of pizza slices", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "random(2..15) //random denominator", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "num": {"definition": "(p*m+n*o)/gcd_ans", "templateType": "anything", "group": "Ungrouped variables", "name": "num", "description": ""}, "gcd_op": {"definition": "gcd(o,p)", "templateType": "anything", "group": "Ungrouped variables", "name": "gcd_op", "description": ""}, "gcd_mn": {"definition": "gcd(m,n)", "templateType": "anything", "group": "Ungrouped variables", "name": "gcd_mn", "description": ""}, "r": {"definition": "random(3..7) //random number of pizza slices", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "den": {"definition": "p*n/gcd_ans", "templateType": "anything", "group": "Ungrouped variables", "name": "den", "description": ""}}, "showQuestionGroupNames": false, "metadata": {"description": "A variety of worded fraction questions.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "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/"}]}