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

Given n-1 angles inside a polygon, students have to calculate the value of the last internal angle.

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

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

", "advice": "

The angle sum is $1\\times 180° = 180°$.

\n

So $Y = 180 - (\\var{angles[0]}+\\var{angles[1]}) = \\var{answer}$

\n

The angle sum is $2\\times 180° = 360°$.

\n

So $Y = 360 - (\\var{angles[0]}+\\var{angles[1]}+\\var{angles[2]}) = \\var{answer}$

\n

The angle sum is $3\\times 180° = 540°$.

\n

So $Y = 540 - (\\var{angles[0]}+\\var{angles[1]}+\\var{angles[2]}+\\var{angles[3]}) = \\var{answer}$

\n

The angle sum is $4\\times 180° = 720°$.

\n

So $Y = 720 - (\\var{angles[0]}+\\var{angles[1]}+\\var{angles[2]}+\\var{angles[3]}+\\var{angles[4]}) = \\var{answer}$

", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"applet": {"name": "applet", "group": "Ungrouped variables", "definition": "['wyena75x','jbxzqquk','djq48jk8','uzkxbbcp'][n-3]", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(3..6)", "description": "

number of sides on the polygon.

", "templateType": "anything", "can_override": false}, "angles": {"name": "angles", "group": "Ungrouped variables", "definition": "[random(mini..maxi), random(mini..maxi),random(mini..maxi), random(mini..maxi), random(mini..maxi)]", "description": "", "templateType": "anything", "can_override": false}, "mini": {"name": "mini", "group": "Ungrouped variables", "definition": "[25,70,100,120][n-3]", "description": "", "templateType": "anything", "can_override": false}, "maxi": {"name": "maxi", "group": "Ungrouped variables", "definition": "[75,105,120,135][n-3]", "description": "", "templateType": "anything", "can_override": false}, "deflist": {"name": "deflist", "group": "Ungrouped variables", "definition": "[\n[['a',angles[0]],['b',angles[1]]],\n[['a',angles[0]],['b',angles[1]],['c',angles[2]]],\n[['a',angles[0]],['b',angles[1]],['c',angles[2]],['d',angles[3]]],\n[['a',angles[0]],['b',angles[1]],['c',angles[2]],['d',angles[3]],['e',angles[4]]]\n]", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "180*(n-2)-sum(angles[0..n-1])", "description": "", "templateType": "anything", "can_override": false}, "test": {"name": "test", "group": "Ungrouped variables", "definition": "angles[4]", "description": "", "templateType": "anything", "can_override": false}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "deflist[n-3]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["applet", "n", "angles", "mini", "maxi", "deflist", "answer", "test", "defs"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find the value of angle Y.

\n

Y = [[0]]°

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "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/"}]}