// Numbas version: exam_results_page_options {"name": "Simple linear equation", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "c", "b", "s", "fromto", "op"], "name": "Simple linear equation", "tags": ["algebra", "equation", "linear"], "preamble": {"css": "", "js": ""}, "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 http://www.mathsisfun.com/algebra/equations-solving.html

", "rulesets": {}, "parts": [{"prompt": "

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

\n

$n= $ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"integerPartialCredit": 0, "integerAnswer": true, "allowFractions": false, "variableReplacements": [], "maxValue": "{a}*({c}-{s}*{b})", "minValue": "{a}*({c}-{s}*{b})", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

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

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2..6#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(8..12#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "c", "description": "

Chosen so that c>b to avoid negative answers.

"}, "b": {"definition": "random(3..6#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "b", "description": ""}, "s": {"definition": "random(1,-1)", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "fromto": {"definition": "if( op= 'add','to','from')", "templateType": "anything", "group": "Ungrouped variables", "name": "fromto", "description": ""}, "op": {"definition": "if(s=-1, 'add', 'subtract')", "templateType": "anything", "group": "Ungrouped variables", "name": "op", "description": ""}}, "metadata": {"description": "

Simple Linear Equation.

\n

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

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}