// Numbas version: exam_results_page_options {"name": "Solving linear equations: one step: adding or subtracting ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "ans1", "c", "d", "ans2", "g", "f", "ans3", "h", "j", "ans4"], "name": "Solving linear equations: one step: adding or subtracting ", "tags": ["algebra", "balancing equations", "Linear equations", "linear equations", "one step equations", "rearranging equations", "solving equations", "Solving equations"], "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "

Given $x+\\var{a}=\\var{b}$, we can rearrange the equation to that find $x=$ [[0]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans1}", "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $x+\\var{a}=\\var{b}$, we subtract $\\var{a}$ from both sides to get $x$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$x+\\var{a}$$=$$\\var{b}$
$x+\\var{a}-\\var{a}$$=$$\\var{b}-\\var{a}$
$x$$=$$\\var{ans1}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Given $y-\\var{c}=\\var{d}$,  $y=$ [[0]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans2}", "minValue": "{ans2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $y-\\var{c}=\\var{d}$, we add $\\var{c}$ to both sides to get $y$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$y-\\var{c}$$=$$\\var{d}$
$y-\\var{c}+\\var{c}$$=$$\\var{d}+\\var{c}$
$y$$=$$\\var{ans2}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Rearrange $\\var{f}+z=\\var{g}$ to determine the value of $z$.

\n

$z=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans3}", "minValue": "{ans3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\var{f}+z=\\var{g}$, we subtract $\\var{f}$ from both sides to get $z$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{f}+z$$=$$\\var{g}$
$\\simplify[basic]{{f}+z-{f}}$$=$$\\simplify[basic]{{g}-{f}}$
$z$$=$$\\var{ans3}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Solve $\\var{h}=\\var{j}+a$ for $a$.

\n

$a=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans4}", "minValue": "{ans4}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\var{h}=\\var{j}+a$, we subtract $\\var{j}$ from both sides to get $a$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{h}$$=$$\\var{j}+a$
$\\simplify[basic]{{h}-{j}}$$=$$\\simplify[basic]{{j}+a-{j}}$
$\\var{ans4}$$=$$a$
$a$$=$$\\var{ans4}$
\n

\n

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": "100", "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(1..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(2..40)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(-40..40 except [0,a])", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(-12..12 except [0,c,-c])", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "random(-25..25 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "random(-25..25 except [0,g])", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "ans1": {"definition": "b-a", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "c+d", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "g-f", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "ans4": {"definition": "h-j", "templateType": "anything", "group": "Ungrouped variables", "name": "ans4", "description": ""}, "j": {"definition": "random(-25..25 except [0,h])", "templateType": "anything", "group": "Ungrouped variables", "name": "j", "description": ""}, "h": {"definition": "random(-25..25 except [0])", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}