// Numbas version: finer_feedback_settings {"name": "NC NA Fraction addition - sausage sizzle leftovers (9)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NC NA Fraction addition - sausage sizzle leftovers (9)", "tags": ["LANTITE"], "metadata": {"description": "
Used for LANTITE preparation (Australia). NC = Non Calculator strand. NA = Number & Algebra strand. Students need to add two fractions with different denominators, then subtract the answer from 1. There are 9 different versions of this question.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\n\n\n\n\n\n\nNortham High School held a sausage sizzle at their athletics carnival.
\nThree Year 11 students, {name1}, {name2} and {name3} volunteered to cook the sausages.
\n{name1} cooked {frac1name} of the sausages, and {name2} cooked {frac2name} of the sausages.
", "advice": "\n\n\n{name1} cooked {frac1name} of the sausages, and {name2} cooked {frac2name} of the sausages.
\nWe need to add these fractions.
\n$ \\frac{\\var{frac1num}}{\\var{frac1denom}} + \\frac{\\var{frac2num}}{\\var{frac2denom}} $
\n= $ \\frac{\\var{frac1num*frac2denom}}{\\var{frac1denom*frac2denom}} + \\frac{\\var{frac2num*frac1denom}}{\\var{frac2denom*frac1denom}} $
\n=$ \\frac{\\var{frac1num*frac2denom+frac2num*frac1denom}}{\\var{frac1denom*frac2denom}} $
\nThen we subtract this answer from one whole to find the fraction of sausages remaining for {name3} to cook.
\n1 - $ \\frac{\\var{frac1num*frac2denom+frac2num*frac1denom}}{\\var{frac1denom*frac2denom}} $
\n= $ \\frac {\\var{frac1denom*frac2denom-(frac1num*frac2denom+frac2num*frac1denom)}}{\\var{frac1denom*frac2denom}} $
\nThis fraction cannot be simplified.
\nSo {name3} cooked the remaining $ \\frac {\\var{answernumerator}} {\\var{answerdenominator}} $ of the sausages.
\nThis fraction needs to be simplified. Divide both numerator and denominator by {gcd(frac1denom*frac2denom-(frac1num*frac2denom+frac2num*frac1denom),frac1denom*frac2denom)}.
\n$ \\frac {\\var {frac1denom*frac2denom-(frac1num*frac2denom+frac2num*frac1denom)}}{\\var{frac1denom*frac2denom}} $ = $ \\frac {\\var{answernumerator}} {\\var{answerdenominator}}$
\nSo {name3} cooked the remaining $ \\frac {\\var{answernumerator}} {\\var{answerdenominator}} $ of the sausages.
\nThe randomly selected fraction for the first student - in word form.
", "templateType": "anything", "can_override": false}, "fractionnotcooked": {"name": "fractionnotcooked", "group": "Ungrouped variables", "definition": "rational_approximation(decimalnotcooked)", "description": "\n\nThe proportion of sausages not cooked by students 1 and 2 together, as a fraction.
", "templateType": "anything", "can_override": false}, "answernumerator": {"name": "answernumerator", "group": "Ungrouped variables", "definition": "fractionnotcooked[0]", "description": "\n\nThe numerator of the proportion of sausages not cooked by students 1 and 2 together (fraction not yet simplified)
", "templateType": "anything", "can_override": false}, "decimalnotcooked": {"name": "decimalnotcooked", "group": "Ungrouped variables", "definition": "1-((frac1num/frac1denom)+(frac2num/frac2denom))", "description": "\n\nThe proportion of sausages not cooked by students 1 and 2 together.
", "templateType": "anything", "can_override": false}, "frac2": {"name": "frac2", "group": "Ungrouped variables", "definition": "random(frac2options)", "description": "\n\nThe randomly selected fraction for the second student - in both word and numerical form.
", "templateType": "anything", "can_override": false}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": "random(\"Sue\",\"Edwin\",\"Matt\",\"Jake\",\"Madi\",\"Julia\")", "description": "\n\n\n\nA randomly selected name from the list for the first person.
", "templateType": "anything", "can_override": false}, "frac1denom": {"name": "frac1denom", "group": "Ungrouped variables", "definition": "frac1[\"denom\"]", "description": "\n\nThe denominator of the randomly selected fraction for the first student.
", "templateType": "anything", "can_override": false}, "frac2denom": {"name": "frac2denom", "group": "Ungrouped variables", "definition": "frac2[\"denom\"]", "description": "\nThe denominator of the randomly selected fraction for the second student.
", "templateType": "anything", "can_override": false}, "frac2options": {"name": "frac2options", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"name\\\": \\\"one fifth\\\",\\n \\\"num\\\": 1,\\n \\\"denom\\\": 5\\n },\\n {\\n \\\"name\\\": \\\"one sixth\\\",\\n \\\"num\\\": 1,\\n \\\"denom\\\": 6\\n },\\n {\\n \\\"name\\\": \\\"two fifths\\\",\\n \\\"num\\\": 2,\\n \\\"denom\\\": 5\\n }\\n]\"))", "description": "\nList of three possible scenarios for the proportion of sausages cooked by the second student.
", "templateType": "json", "can_override": false}, "frac2name": {"name": "frac2name", "group": "Ungrouped variables", "definition": "frac2[\"name\"]", "description": "\nThe randomly selected fraction for the second student - in word form.
", "templateType": "anything", "can_override": false}, "frac1options": {"name": "frac1options", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"name\\\": \\\"half\\\",\\n \\\"num\\\": 1,\\n \\\"denom\\\": 2\\n },\\n {\\n \\\"name\\\": \\\"one third\\\",\\n \\\"num\\\": 1,\\n \\\"denom\\\": 3\\n },\\n {\\n \\\"name\\\": \\\"one quarter\\\",\\n \\\"num\\\": 1,\\n \\\"denom\\\": 4\\n }\\n]\"))", "description": "\n\n\n\nList of three possible scenarios for the proportion of sausages cooked by the first student.
", "templateType": "json", "can_override": false}, "answerdenominator": {"name": "answerdenominator", "group": "Ungrouped variables", "definition": "fractionnotcooked[1]", "description": "\nThe denominator of the proportion of sausages not cooked by students 1 and 2 together (fraction not yet simplified)
", "templateType": "anything", "can_override": false}, "frac1": {"name": "frac1", "group": "Ungrouped variables", "definition": "random(frac1options)", "description": "\n\n\nThe randomly selected fraction for the first student - in both word and numerical form.
", "templateType": "anything", "can_override": false}, "name2": {"name": "name2", "group": "Ungrouped variables", "definition": "random(\"Lisa\",\"Shelley\",\"Liz\",\"Mike\",\"Jack\",\"Andrew\")", "description": "A randomly selected name from the list for the second person.
", "templateType": "anything", "can_override": false}, "name3": {"name": "name3", "group": "Ungrouped variables", "definition": "random(\"Amber\",\"Becky\",\"Yuhan\",\"Shani\",\"Ravi\",\"Jim\")", "description": "A randomly selected name from the list for the third person.
", "templateType": "anything", "can_override": false}, "frac1num": {"name": "frac1num", "group": "Ungrouped variables", "definition": "frac1[\"num\"]", "description": "The numerator of the randomly selected fraction for the first student.
", "templateType": "anything", "can_override": false}, "frac2num": {"name": "frac2num", "group": "Ungrouped variables", "definition": "frac2[\"num\"]", "description": "The numerator of the randomly selected fraction for the second student.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["name1", "name2", "name3", "frac1options", "frac1", "frac1name", "frac1num", "frac1denom", "frac2options", "frac2", "frac2name", "frac2num", "frac2denom", "decimalnotcooked", "fractionnotcooked", "answernumerator", "answerdenominator"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "What fraction of the sausages was left for {name3} to cook?
\nUse the / key to enter your answer as a fraction in simplest form.
", "minValue": "decimalnotcooked", "maxValue": "decimalnotcooked", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": 0, "showFractionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}