// Numbas version: exam_results_page_options {"name": "identify the compass bearing", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "identify the compass bearing", "tags": [], "metadata": {"description": "

Student is shown a random bearing with the true bearing marked. They are asked to write it as a compass bearing.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

{geogebra_applet('https://www.geogebra.org/m/bc4zzurx',defs)}

", "advice": "

The bearing is between {NS} and {EW}, so the bearing is of the form {NS}__{EW}.

\n

We need to compute the angle between {NS} and the bearing line.

\n

This is given by {calc_advice}.

\n

so the compass bearing is {angle_compass}.

", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"defs": {"name": "defs", "group": "geogebra vars", "definition": "[\n ['bearing_1',angle]\n ]", "description": "", "templateType": "anything", "can_override": false}, "angle": {"name": "angle", "group": "geogebra vars", "definition": "random(0..359)", "description": "", "templateType": "anything", "can_override": false}, "angle_compass": {"name": "angle_compass", "group": "display vars", "definition": "switch(angle=0,\"N\",\n 0 270,'N',\n angle >90 and angle < 270, 'S',\n angle = 90 or angle = 270, '')", "description": "", "templateType": "anything", "can_override": false}, "EW": {"name": "EW", "group": "Advice calcs", "definition": "switch(angle = 0, '',\n angle >0 and angle<180,'E',\n angle = 180,'',\n angle > 180, 'W')", "description": "", "templateType": "anything", "can_override": false}, "bearing": {"name": "bearing", "group": "Advice calcs", "definition": "switch(angle=0,'',\n angle>0 and angle<90,string(angle),\n angle=90,'',\n angle>90 and angle<180, string(180-angle),\n angle=180,'',\n angle>180 and angle<270,string(180+angle),\n angle=270,'',\n angle>270, string(360-angle))", "description": "", "templateType": "anything", "can_override": false}, "calc_advice": {"name": "calc_advice", "group": "Advice calcs", "definition": "switch(angle=0,'due north',\n angle>0 and angle<90,angle+\"\u00b0\",\n angle=90,'due east',\n angle>90 and angle<180, \"180\u00b0-\"+angle+\"\u00b0 = \" + (180-angle) + \"\u00b0\",\n angle=180,'due south',\n angle>180 and angle<270,angle+\"\u00b0 - 180\u00b0 = \"+ (angle-180) + \"\u00b0\",\n angle=270,'due west',\n angle>270, \"360\u00b0 -\"+ angle + \"\u00b0 = \" + (360-angle) + \"\u00b0\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "geogebra vars", "variables": ["angle", "defs"]}, {"name": "display vars", "variables": ["angle_compass", "angle_compass_2"]}, {"name": "Advice calcs", "variables": ["calc_advice", "NS", "EW", "bearing"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "patternmatch", "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": "

Give this bearing as a compass bearing.

\n

You can copy the \" ° \" sign from here and paste it, or you can just leave it out.

", "answer": "{angle_compass}|{angle_compass_2}", "displayAnswer": "{angle_compass}", "matchMode": "regex"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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/"}]}