// Numbas version: exam_results_page_options {"name": "Ioannis's copy of Simple linear equation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Ioannis's copy of Simple linear equation", "variablesTest": {"maxRuns": 100, "condition": ""}, "tags": [], "parts": [{"showCorrectAnswer": true, "gaps": [{"showCorrectAnswer": true, "type": "numberentry", "mustBeReduced": false, "minValue": "{a}*({c}-{s}*{b})", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "unitTests": [], "customMarkingAlgorithm": "", "allowFractions": false, "mustBeReducedPC": 0, "maxValue": "{a}*({c}-{s}*{b})", "scripts": {}, "marks": 1, "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "type": "gapfill", "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "unitTests": [], "customMarkingAlgorithm": "", "prompt": "

If $ \\simplify{{n}/{a} + {s}* {b} = {c}}  $, enter the value of $n$ in the space below.

\n

$n= $ [[0]]

", "scripts": {}, "marks": 0, "sortAnswers": false, "variableReplacements": [], "extendBaseMarkingAlgorithm": true}], "variables": {"op": {"name": "op", "definition": "if(s=-1, 'add', 'subtract')", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "b": {"name": "b", "definition": "random(3..6#1)", "description": "", "templateType": "randrange", "group": "Ungrouped variables"}, "a": {"name": "a", "definition": "random(2..6#1)", "description": "", "templateType": "randrange", "group": "Ungrouped variables"}, "c": {"name": "c", "definition": "random(8..12#1)", "description": "

Chosen so that c>b to avoid negative answers.

", "templateType": "randrange", "group": "Ungrouped variables"}, "fromto": {"name": "fromto", "definition": "if( op= 'add','to','from')", "description": "", "templateType": "anything", "group": "Ungrouped variables"}, "s": {"name": "s", "definition": "random(1,-1)", "description": "", "templateType": "anything", "group": "Ungrouped variables"}}, "ungrouped_variables": ["a", "c", "b", "s", "fromto", "op"], "rulesets": {}, "metadata": {"description": "

Simple Linear Equation.

\n

$ \\dfrac{n}{a} \\pm b = c$

", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "advice": "

Remember that you need to treat both sides of the equation in exactly the same way.

\n

Given $ \\simplify  {n/{a} + {s}*{b} = {c} } $,

\n

your first step could be to $ \\var{op} \\ \\  \\var{b}$ $ \\ \\ \\var{fromto}$ both sides, giving you $ \\simplify { n/{a} = {c} - {s}*{b}}$.

\n

Then multiplying both sides by $ \\var{a}$ will give $ \\simplify{ n= {a}*({c}-{s}*{b})}$.

\n

If you decide to multiply by $\\var{a}$ first, you need to be careful to multiply all of the terms by $\\var{a}$ giving

\n

$ \\simplify{ n +{s}*{b}*{a} = {c}*{a}}$.

\n

For some general advice on solving equations see the Equations section on the Maths Study Skills Moodle page.

", "functions": {}, "preamble": {"css": "", "js": ""}, "statement": "

Solve the following equation to find the value of $n$.

", "extensions": [], "type": "question", "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}, {"name": "Ioannis Lignos", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/757/"}]}