// Numbas version: exam_results_page_options {"name": "Q5r Write and simplify an algebraic expression (10+)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Q5r Write and simplify an algebraic expression (10+)", "tags": [], "metadata": {"description": "
Used in a LANTITE workshop.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Jack, Sue, Lisa and Ben all collect Pokemon cards.
\nSue has double triple the number of cards that Jack has.
\nLisa has {Lisa} more cards than Jack.
\nBen has {Ben} fewer cards than Sue.
\nLet the pronumeral $c$ represent the number of cards that Jack has.
", "advice": "Jack has $c$ Pokemon cards.
\nSue has double triple the number of cards that Jack has.
\nTherefore Sue has $2$ $3$ times $c$ cards. This is written as $2c$ $3c$.
\nLisa has $\\var{Lisa}$ more cards than Jack.
\nTherefore Lisa has $c+\\var{Lisa}$ cards.
\nBen has $\\var{Ben}$ fewer cards than Sue.
\nSue has $2c$ $3c$ cards, so Ben has $2c-\\var{Ben}$ $3c-\\var{Ben}$ cards. Note that this is not written $\\var{Ben}-\\var{Sue}c$.
\nThe total number of cards that the four people have is given by $c+\\var{Sue}c+(c+\\var{Lisa})+(\\var{Sue}c-\\var{Ben})$
\nWhen we collect like terms, we get $6c+\\var{const}$$8c+\\var{const}$.
\nThe simplified algebraic expression for the total number of Pokemon cards that Jack, Sue, Lisa and Ben have is $6c+\\var{const}$$8c+\\var{const}$.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"Sue": {"name": "Sue", "group": "Ungrouped variables", "definition": "random(2 .. 3#1)", "description": "", "templateType": "randrange", "can_override": false}, "Lisa": {"name": "Lisa", "group": "Ungrouped variables", "definition": "random(7 .. 10#1)", "description": "", "templateType": "randrange", "can_override": false}, "Ben": {"name": "Ben", "group": "Ungrouped variables", "definition": "random(4 .. 6#1)", "description": "", "templateType": "randrange", "can_override": false}, "const": {"name": "const", "group": "Ungrouped variables", "definition": "{Lisa}-{Ben}", "description": "", "templateType": "anything", "can_override": false}, "coeff": {"name": "coeff", "group": "Ungrouped variables", "definition": "2*Sue+2", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Sue", "Lisa", "Ben", "const", "coeff"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Select the correct algebraic expression for the number of cards that each person has (select one dot on each row).
", "minMarks": 0, "maxMarks": "4", "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": false, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["Sue", "Lisa", "Ben", "Jack, Sue, Lisa and Ben altogether"], "matrix": [["1", 0, 0, 0, 0, 0, 0, 0, 0], [0, "1", 0, 0, 0, 0, 0, 0, 0], [0, 0, "1", 0, 0, 0, 0, 0, 0], [0, 0, 0, "1", 0, 0, 0, 0, 0]], "layout": {"type": "all", "expression": ""}, "answers": ["$\\text{ }\\var{Sue}c\\text{ }$", "$\\text{ }c+\\var{Lisa}\\text{ }$", "$\\text{ }\\var{Sue}c-\\var{Ben}\\text{ }$", "$\\text{ }\\var{coeff}c+\\var{const}\\text{ }$", "$\\text{ }c^{\\var{Sue}}\\text{ }$", "$\\text{ }\\var{Lisa}c\\text{ }$", "$\\text{ }\\var{Ben}-\\var{Sue}c\\text{ }$", "$\\text{ }\\var{Ben}-\\var{Lisa}c\\text{ }$", "$\\text{ }c^{\\var{Sue}}+\\var{Lisa-Sue+1}c+\\var{Ben}\\text{ }$"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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/"}]}