// Numbas version: finer_feedback_settings {"name": "word problem using graphical simultaneous equations 2.", "extensions": ["geogebra", "random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "word problem using graphical simultaneous equations 2.", "tags": [], "metadata": {"description": "
Students are shown to intersecting lines in the context of comparing the costs of services from two companies. They are asked to identify the y-intercept, the gradients, the point of intersection and are asked to interpret the graphs in the context of the word problem.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\nYou have a document that you want printed.
\n{name1}'s company charges \\${b1} to set up the job, and \\${m1} for each copy of the document printed.
\n{name2}'s company charges a \\${b2} to set up the job, and \\${m2} for each copy of the document printed.
\nYour secretary prepared the following graph to illustrate this information, but {they1} did not give the axes meaningful names, and forgot to label the lines.
\n{geogebra_applet('https://www.geogebra.org/m/uky4vz3z',defs)}
", "advice": "The two variables that are linearly related are number of documents and cost. Number of documents is the independent variable, so it should be on the horizontal axis, and cost should be on the vertical axis.
\nThe black line represents the costs of using {name1}'s company because this line has a $y$-intercept at {b1}, which matches the setup costs for {name1}'s company.
\nIf you intend to print {n} copies of the document, the cheaper option is to use {name1}'s company because this line has a lower value at the point where $x=\\var{n}$ the cheaper option is to use {name2}'s company because this line has a lower value at the point where $x=\\var{n}$ it doesn't matter which option you choose because the cost is the same.
\nThe least number of documents for which it is cheaper to use {name1}'s company is {px+gymwins}. This is the first $x$-axis value for which the {name1} company line is below the {name2} company line.
\nThe greatest number of documents for which it is cheaper to use {name2}'s company is {px+gymwins}. This the last $x$-axis value for which the {name2} company line is below the {name1} company line.
\n{px} visits are required for the costs to be equal for the two companies. This is the point at which the two lines intersect, and the cost is \\${m2*px+b2}.
\nThe cost of printing {n2} document at {name1}'s company can be read from the graph using the {name1} company line. This is equal to \\${m1*n2+b1}.
\nThe cost of printing {n2} documents at {name2}'s company can be read from the graph using the {name2} company line. This is equal to \\${m2*n2+b2}.
", "rulesets": {}, "extensions": ["geogebra", "random_person"], "variables": {"defs": {"name": "defs", "group": "lines", "definition": "[\n ['b1',b1],['m1',m1],['b2',b2],['m2',m2],\n ['xmin',0],['xmax',xmax],['ymin',0],['ymax',ymax]\n ]", "description": "", "templateType": "anything"}, "m1": {"name": "m1", "group": "lines", "definition": "random(1..m2-1)", "description": "", "templateType": "anything"}, "m2": {"name": "m2", "group": "lines", "definition": "random(2..5)", "description": "", "templateType": "anything"}, "b2": {"name": "b2", "group": "lines", "definition": "random(1..10)", "description": "", "templateType": "anything"}, "xmax": {"name": "xmax", "group": "lines", "definition": "2*px", "description": "", "templateType": "anything"}, "px": {"name": "px", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "the x-value of the intersection point
", "templateType": "anything"}, "ymax": {"name": "ymax", "group": "lines", "definition": "2*m1*px+b1", "description": "", "templateType": "anything"}, "gymwins": {"name": "gymwins", "group": "randomisers", "definition": "random(-1,0,1)", "description": "", "templateType": "anything"}, "person1": {"name": "person1", "group": "name variables", "definition": "people[0]", "description": "", "templateType": "anything"}, "neutral1": {"name": "neutral1", "group": "name variables", "definition": "person1['gender']='neutral'", "description": "", "templateType": "anything"}, "name1": {"name": "name1", "group": "name variables", "definition": "person1['name']", "description": "", "templateType": "anything"}, "they1": {"name": "they1", "group": "name variables", "definition": "person1['pronouns']['they']", "description": "", "templateType": "anything"}, "their1": {"name": "their1", "group": "name variables", "definition": "person1['pronouns']['their']", "description": "", "templateType": "anything"}, "theirs1": {"name": "theirs1", "group": "name variables", "definition": "person1['pronouns']['theirs']", "description": "", "templateType": "anything"}, "them1": {"name": "them1", "group": "name variables", "definition": "person1['pronouns']['them']", "description": "", "templateType": "anything"}, "themself1": {"name": "themself1", "group": "name variables", "definition": "person1['pronouns']['themself']", "description": "", "templateType": "anything"}, "s1": {"name": "s1", "group": "name variables", "definition": "if(neutral1,'','s')", "description": "", "templateType": "anything"}, "neutral2": {"name": "neutral2", "group": "name variables", "definition": "person1['gender']='neutral'", "description": "", "templateType": "anything"}, "name2": {"name": "name2", "group": "name variables", "definition": "person2['name']", "description": "", "templateType": "anything"}, "they2": {"name": "they2", "group": "name variables", "definition": "person2['pronouns']['they']", "description": "", "templateType": "anything"}, "their2": {"name": "their2", "group": "name variables", "definition": "person2['pronouns']['their']", "description": "", "templateType": "anything"}, "theirs2": {"name": "theirs2", "group": "name variables", "definition": "person2['pronouns']['theirs']", "description": "", "templateType": "anything"}, "them2": {"name": "them2", "group": "name variables", "definition": "person2['pronouns']['them']", "description": "", "templateType": "anything"}, "themself2": {"name": "themself2", "group": "name variables", "definition": "person2['pronouns']['themself']", "description": "", "templateType": "anything"}, "s2": {"name": "s2", "group": "name variables", "definition": "if(neutral1,'','s')", "description": "", "templateType": "anything"}, "whichperson": {"name": "whichperson", "group": "randomisers", "definition": "random(1,2)", "description": "", "templateType": "anything"}, "b1": {"name": "b1", "group": "lines", "definition": "m2*px+b2-m1*px", "description": "", "templateType": "anything"}, "person2": {"name": "person2", "group": "name variables", "definition": "people[1]", "description": "", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(1..xmax)", "description": "number of documents to print
", "templateType": "anything"}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "random(2..xmax)", "description": "", "templateType": "anything"}, "people": {"name": "people", "group": "name variables", "definition": "random_people(30)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["px", "n", "n2"], "variable_groups": [{"name": "name variables", "variables": ["person1", "neutral1", "name1", "they1", "their1", "theirs1", "them1", "themself1", "s1", "neutral2", "name2", "they2", "their2", "theirs2", "them2", "themself2", "s2", "person2", "people"]}, {"name": "randomisers", "variables": ["whichperson", "gymwins"]}, {"name": "lines", "variables": ["m1", "m2", "b1", "b2", "xmax", "ymax", "defs"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "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": "What is an appropriate label for the $x$-axis?
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["number of documents", "cost ($)", "best number of documents to print", "Cheapest printing costs ($)"], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}, {"type": "1_n_2", "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": "What is an appropriate label for the $y$-axis?
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["number of documents", "Cost ($)", "best number of documents to print", "cheapest printing costs ($)"], "matrix": [0, "1", 0, 0], "distractors": ["", "", "", ""]}, {"type": "1_n_2", "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": "Which line represents the cost of using {name1}'s company?
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["red line", "black line"], "matrix": ["0", "1"], "distractors": ["", ""]}, {"type": "1_n_2", "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": "If you intend to print {n} copies of the document, which is the cheaper option?
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{name1}'s company", "{name2}'s company", "it doesn't matter because they are the same price"], "matrix": ["if((m1*n+b1)<(m2*n+b2),1,0)", "if((m1*n+b1)>(m2*n+b2),1,0)", "if((m1*n)=(m2*n+b2),1,0)"], "distractors": ["", "", ""]}, {"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 is the fewest number of documents for which it is cheaper to use {name2}'s company?
\nWhat is the most number of documents for which it is cheaper to use {name1}'s company?
\nHow many documents need to be printed for the costs to be the same for both companies?
", "minValue": "px+gymwins", "maxValue": "px+gymwins", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "How many dollars does {name1}'s company charge to print {n2} documents?
\nHow many dollars does {name2}'s company charge to print {n2} document?
", "minValue": "if(whichperson=1,m1*n2+b1,m2*n2+b2)", "maxValue": "if(whichperson=1,m1*n2+b1,m2*n2+b2)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}