// Numbas version: exam_results_page_options {"name": "Convert true bearing to conventional bearing", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Capture_MQAwqPM.PNG", "/srv/numbas/media/question-resources/Capture_MQAwqPM.PNG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Convert true bearing to conventional bearing", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Convert true bearing to a conventional bearing. In your answer omit the degree symbol, for example N45°E is entered N45E. 

", "advice": "", "rulesets": {}, "extensions": [], "variables": {"ns": {"name": "ns", "group": "Ungrouped variables", "definition": "random([\"N\",\"S\"])", "description": "", "templateType": "anything"}, "ew": {"name": "ew", "group": "Ungrouped variables", "definition": "random([\"E\",\"W\"])", "description": "", "templateType": "anything"}, "cb1": {"name": "cb1", "group": "Ungrouped variables", "definition": "random(1 .. 89#1)", "description": "", "templateType": "randrange"}, "tb1": {"name": "tb1", "group": "Ungrouped variables", "definition": "if(ns=\"N\" and ew=\"E\", cb1, if(ns=\"N\" and ew=\"W\",360-cb1, if(ew=\"W\",180+cb1, 180-cb1)))", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["ns", "ew", "cb1", "tb1"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

{tb1}°T = [[0]]

", "stepsPenalty": 0, "steps": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Bearings are a way of indicating directions. Bearings can be given in two ways: conventional bearings and true bearings.

\n

"}], "gaps": [{"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "answer": "{ns}{cb1}{ew}", "displayAnswer": "{ns}{tb1}{ew}", "matchMode": "regex"}], "sortAnswers": false}], "contributors": [{"name": "Andrew Chuter", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4565/"}]}]}], "contributors": [{"name": "Andrew Chuter", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4565/"}]}