// Numbas version: finer_feedback_settings {"name": "Convert conventional bearing to true 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 conventional bearing to true bearing", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "
Convert the conventional bearing to a true bearing.
", "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": "{ns}{cb1}°{ew} = [[0]]°T
", "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": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "minValue": "tb1", "maxValue": "tb1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "type": "question", "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/"}]}