// Numbas version: finer_feedback_settings {"name": "base income and commission", "extensions": ["geogebra", "random_person"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "base income and commission", "tags": [], "metadata": {"description": "

Students are shown a graph and, in the context of a word problem, are asked to find the gradient and the y-intercept, to read points from the graph, and to identify the correct equation for the graph.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

{person['name']} is a sales person whose job pays {them} a base salary plus commission for each sale.

\n

The graph shows {their} weekly income ($y$, in dollars) plotted against the number of sales made that week ($x$).

\n

{geogebra_applet('https://www.geogebra.org/m/wxv4ykqj',defs)}

", "advice": "

{name}'s base salary is equal to the $y$-intercept on the graph. This is \\${b}.

\n

The amount {they} earn{s} from each sale is equal to the gradient of the graph. This is \\${m}.

\n

To find out how many sales {name} need{s} to make to earn \\${earnings}, look on the vertical axis of the graph to find {earnings}. Go across horizontally until you meet the line. Then go down vertically to read off the number of sales required, which is {n}.

\n

To find out how many dollars {name} earn{s} in a week in which {they} sell{s} {n-1} policies, look on the horizontal axis of the graph to find {n-1}. Go vertically up until you meet the line. Then go horizontally left to read off the earnings, which is \\${(n-1)*m+b}.

\n

The equation for {name}'s earnings is $y=\\var{m}x+\\var{b}$

", "rulesets": {}, "extensions": ["geogebra", "random_person"], "variables": {"person": {"name": "person", "group": "Ungrouped variables", "definition": "random_person()", "description": "", "templateType": "anything"}, "neutral": {"name": "neutral", "group": "Ungrouped variables", "definition": "person['gender']='neutral'", "description": "", "templateType": "anything"}, "name": {"name": "name", "group": "Ungrouped variables", "definition": "person['name']", "description": "", "templateType": "anything"}, "they": {"name": "they", "group": "Ungrouped variables", "definition": "person['pronouns']['they']", "description": "", "templateType": "anything"}, "their": {"name": "their", "group": "Ungrouped variables", "definition": "person['pronouns']['their']", "description": "", "templateType": "anything"}, "theirs": {"name": "theirs", "group": "Ungrouped variables", "definition": "person['pronouns']['theirs']", "description": "", "templateType": "anything"}, "them": {"name": "them", "group": "Ungrouped variables", "definition": "person['pronouns']['them']", "description": "", "templateType": "anything"}, "themself": {"name": "themself", "group": "Ungrouped variables", "definition": "person['pronouns']['themself']", "description": "", "templateType": "anything"}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "if(neutral,'','s')", "description": "", "templateType": "anything"}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "random(50,100,200,300,400,500)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1..6)*100", "description": "", "templateType": "anything"}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\n ['a',m],['b',b],['xmin',0],['xmax',5],['ymin',0],['ymax',b+5*m]\n ]", "description": "", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(1..5)", "description": "

number of sales

", "templateType": "anything"}, "earnings": {"name": "earnings", "group": "Ungrouped variables", "definition": "n*m+b", "description": "

how much they would earn from n sales

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["person", "neutral", "name", "they", "their", "theirs", "them", "themself", "s", "m", "b", "defs", "n", "earnings"], "variable_groups": [], "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 is {name}'s base salary, in dollars?

", "minValue": "b", "maxValue": "b", "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 {name} earn from each sale?

", "minValue": "m", "maxValue": "m", "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 sales does {name} need to make to earn \\${earnings}?

", "minValue": "n", "maxValue": "n", "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 {name} earn in a week in which {they} make{s} {n-1} sales?

", "minValue": "(n-1)*m+b", "maxValue": "(n-1)*m+b", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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 of the following equations represents {name}'s weekly earnings?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["$y=\\var{m}x+\\var{b}$", "$x=\\var{m}y+\\var{b}$", "$y=\\var{b}x+\\var{m}$", "$x=\\var{b}y+\\var{m}$"], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}], "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/"}]}