// Numbas version: exam_results_page_options {"name": "Problem solving in GCSE mathematics q 37", "extensions": ["eukleides", "random_person", "quantities"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "variable_groups": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Taken from question 37 of the book Problem Solving in GCSE Mathematics by Daniel Griller.

Given bearings and lengths of two straight lines, work out the bearing and distance back to the starting point.

A Eukleides diagram shows the setup visually.

"}, "advice": "", "tags": [], "parts": [{"showFeedbackIcon": true, "unitTests": [], "gaps": [{"showFeedbackIcon": true, "variableReplacements": [], "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "customName": "", "showPrecisionHint": false, "type": "numberentry", "precisionPartialCredit": 0, "unitTests": [], "precisionType": "sigfig", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "precision": "3", "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "strictPrecision": false, "allowFractions": false, "scripts": {}, "customMarkingAlgorithm": "", "maxValue": "x", "showCorrectAnswer": true, "minValue": "x"}, {"showFeedbackIcon": true, "variableReplacements": [], "correctAnswerFraction": false, "notationStyles": ["plain", "en", "si-en"], "marks": 1, "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "customName": "", "showPrecisionHint": false, "type": "numberentry", "precisionPartialCredit": 0, "unitTests": [], "precisionType": "sigfig", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "precision": "3", "correctAnswerStyle": "plain", "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReducedPC": 0, "strictPrecision": false, "allowFractions": false, "scripts": {}, "customMarkingAlgorithm": "", "maxValue": "bearing", "showCorrectAnswer": true, "minValue": "bearing"}], "steps": [{"showFeedbackIcon": true, "showCorrectAnswer": true, "marks": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "customName": "", "type": "information", "scripts": {}, "unitTests": [], "variableReplacements": [], "prompt": "

The following diagram shows all of the given information.

\n

{name} begins at $A$, moves to $B$ and then $C$.

\n

{max_height(40,max_width(30,hint_diagram))}

", "useCustomName": false, "variableReplacementStrategy": "originalfirst"}], "stepsPenalty": 0, "marks": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "customName": "", "sortAnswers": false, "type": "gapfill", "scripts": {}, "showCorrectAnswer": true, "variableReplacements": [], "prompt": "

{name} walks on a bearing of {deg(h1)} for 4 km, then turns and walks on a bearing of {deg(h2)} for {length_2} km.

\n

If {they} {if(neutral,'wish','wishes')} to return directly to {their} starting point, on what bearing should {they} walk, and for what distance?

\n

Walk for [[0]] km on a bearing of [[1]] degrees.

\n

Give your answer to 3 significant figures.

", "useCustomName": false, "variableReplacementStrategy": "originalfirst"}], "ungrouped_variables": ["solved_diagram", "h1", "h2", "person", "name", "they", "neutral", "their", "abc", "x", "theta", "bearing", "hint_diagram", "length_2"], "variables": {"bearing": {"templateType": "anything", "definition": "180+h1+theta", "description": "", "group": "Ungrouped variables", "name": "bearing"}, "hint_diagram": {"templateType": "anything", "definition": "eukleides(\"Bearings between A, B and C\",[\n let(\n ana, deg(heading_1)\n , anb, deg(heading_2)\n , a, origin\n , b, point(4,deg(90)-ana)\n , c, point(length_2,deg(90)-anb)+(b-a)\n , m, (a+vector(0,1))\n , n, (b+vector(0,1))\n , p, (c+vector(0,1.5)) \n , [\n (a..b..c)\n , (a..b) label(\"4\")\n , (b..c) label(length_2+\"\")\n , (a..c) label(\"x\",deg(180)) italic\n , (a..m) arrow\n , (b..n) arrow\n , (c..p) arrow\n , ([\n a label(\"A\",deg(180))\n , b label(\"B\")\n , c label(\"C\",deg(-90))\n , m label(\"M\",deg(90),0.1)\n , n label(\"N\",deg(90),0.1)\n , p label(\"P\",deg(90),0.1)\n ]) italic\n , angle(b,a,m) label(ana)\n , angle(c,b,n) label(anb)\n , b\n , c\n ])\n],[\"heading_1\": h1, \"heading_2\": h2, \"length_2\": 5])\n", "description": "", "group": "Ungrouped variables", "name": "hint_diagram"}, "neutral": {"templateType": "anything", "definition": "person['gender']='neutral'", "description": "", "group": "Ungrouped variables", "name": "neutral"}, "they": {"templateType": "anything", "definition": "person['pronouns']['they']", "description": "", "group": "Ungrouped variables", "name": "they"}, "h2": {"templateType": "anything", "definition": "180+random(10..30#5)", "description": "", "group": "Ungrouped variables", "name": "h2"}, "solved_diagram": {"templateType": "anything", "definition": "eukleides(\"Bearings between A, B and C\",[\n let(\n ana, deg(heading_1)\n , anb, deg(heading_2)\n , a, origin\n , b, point(4,deg(90)-ana)\n , c, point(length_2,deg(90)-anb)+(b-a)\n , m, (a+vector(0,1))\n , n, (b+vector(0,1))\n , p, (c+vector(0,1.5)) \n , [\n (a..b..c)\n , (a..b) label(\"4\")\n , (b..c) label(length_2+\"\")\n , (a..c) label(\"x\",deg(180)) italic\n , (a..m) arrow\n , (b..n) arrow\n , (c..p) arrow\n , ([\n a label(\"A\",deg(180))\n , b label(\"B\")\n , c label(\"C\",deg(-90))\n , m label(\"M\",deg(90),0.1)\n , n label(\"N\",deg(90),0.1)\n , p label(\"P\",deg(90),0.1)\n ]) italic\n , angle(b,a,m) label(ana)\n , angle(c,b,n) label(anb)\n , angle(c,a,b) label(\"\u03b8\") italic\n , angle(n,b,a) label(deg(180)-ana)\n , angle(a,b,c) label(deg(180)+ana-anb)\n , b\n , c\n ])\n],[\"heading_1\": h1, \"heading_2\": h2])", "description": "", "group": "Ungrouped variables", "name": "solved_diagram"}, "theta": {"templateType": "anything", "definition": "degrees(arcsin(5sin(abc)/x))", "description": "", "group": "Ungrouped variables", "name": "theta"}, "their": {"templateType": "anything", "definition": "person['pronouns']['their']", "description": "", "group": "Ungrouped variables", "name": "their"}, "length_2": {"templateType": "anything", "definition": "random(3..6)", "description": "", "group": "Ungrouped variables", "name": "length_2"}, "x": {"templateType": "anything", "definition": "sqrt(4^2+5^2-2*4*5*cos(abc))", "description": "", "group": "Ungrouped variables", "name": "x"}, "h1": {"templateType": "anything", "definition": "random(70..100#5)", "description": "", "group": "Ungrouped variables", "name": "h1"}, "person": {"templateType": "anything", "definition": "random_person()", "description": "", "group": "Ungrouped variables", "name": "person"}, "name": {"templateType": "anything", "definition": "person[\"name\"]", "description": "", "group": "Ungrouped variables", "name": "name"}, "abc": {"templateType": "anything", "definition": "radians(180+h1-h2)", "description": "", "group": "Ungrouped variables", "name": "abc"}}, "functions": {}, "name": "Problem solving in GCSE mathematics q 37", "preamble": {"js": "", "css": ""}, "statement": "", "extensions": ["eukleides", "quantities", "random_person"], "variablesTest": {"condition": "", "maxRuns": 100}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}