// Numbas version: finer_feedback_settings {"name": "Graph a line from a word problem", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Graph a line from a word problem", "tags": [], "metadata": {"description": "
Students are given a word problem and are asked to construct a line equation, evaluate it at a given point, and graph the line.
\nThe line parameters and the given point are randomised.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "A {job} charges \\$$\\var{callout}$ for a call out and \\$$\\var{rate}$ per hour for labour.
", "advice": "An equation for the cost of hiring the plumber for $n$ hours is:
\n$C = \\var{rate} n + \\var{callout}$
\nFor $\\var{n}$ hours, it will cost $C = \\var{rate} \\times \\var{n} + \\var{callout} =$ {costdollars}
\nYour graph should look similar to this {geogebra_applet('https://www.geogebra.org/m/wxv4ykqj',defs)}
\nYour graph needs:
\nYou may have chosen different scales for your axes. This is fine.
", "rulesets": {}, "extensions": ["geogebra"], "variables": {"callout": {"name": "callout", "group": "Ungrouped variables", "definition": "random(10..16)*5", "description": "", "templateType": "anything"}, "rate": {"name": "rate", "group": "Ungrouped variables", "definition": "random(10..24)*5", "description": "", "templateType": "anything"}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(0.5,1,1.5,2,2.5,3,3.5,4)", "description": "number of hours for which the plumber was hired.
", "templateType": "anything"}, "cost": {"name": "cost", "group": "Ungrouped variables", "definition": "callout + rate * n", "description": "cost to hire the plumber for n hours
", "templateType": "anything"}, "costdollars": {"name": "costdollars", "group": "Ungrouped variables", "definition": "currency(cost,'$','')", "description": "", "templateType": "anything"}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\n ['a',rate],['b',callout],['xmin',0],['xmax',n*1.5],['ymin',0],['ymax',n*1.5*rate]\n ]", "description": "", "templateType": "anything"}, "job": {"name": "job", "group": "Ungrouped variables", "definition": "random(\"plumber\",\"electrician\",\"handyman\",\"carpenter\",\"gardener\",\"tiler\",\"gutter installer\",\"stone mason\",\"glazier\",\"car mechanic\")", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["callout", "rate", "n", "cost", "costdollars", "defs", "job"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "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": "Write down an equation to calculate the cost, $C$ of hiring the {job} for $h$ hours.
\nOnce you have completed the whole question, you can click on \"Reveal answers\" to check your equation.
"}, {"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 much would it cost to hire the {job} for $\\var{n}$ hours?
", "minValue": "cost", "maxValue": "cost", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "information", "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": "Draw a graph showing the relationship between the number of hours the plumber spends on the job and the cost of the job.
\nOnce you are done, you can click on \"Reveal answers\" to see a sample graph.
"}], "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/"}]}