// Numbas version: finer_feedback_settings {"name": "angles of a polygon", "extensions": [], "custom_part_types": [], "resources": [["question-resources/triangle_eaATLjo.png", "/srv/numbas/media/question-resources/triangle_eaATLjo.png"], ["question-resources/quadrilateral.png", "/srv/numbas/media/question-resources/quadrilateral.png"], ["question-resources/nonagon.png", "/srv/numbas/media/question-resources/nonagon.png"], ["question-resources/septagon.png", "/srv/numbas/media/question-resources/septagon.png"], ["question-resources/decagon.png", "/srv/numbas/media/question-resources/decagon.png"], ["question-resources/hexagon.png", "/srv/numbas/media/question-resources/hexagon.png"], ["question-resources/octagon.png", "/srv/numbas/media/question-resources/octagon.png"], ["question-resources/pentagon.png", "/srv/numbas/media/question-resources/pentagon.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "angles of a polygon", "tags": [], "metadata": {"description": "
Given a regular n-gon, students are asked for the sum of external angles, sum of internal angles, and the values of the external and internal angles.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "{image('resources/question-resources/'+chosenimage)}
\nComplete the following table for a regular polygon with {n} sides.
\n", "advice": "Sum of external angles for all polygons = $360$°
\nSum of internal angles is $180\\times(n-2) = \\var{suminternal}$°
\nExternal angle value = $\\frac{360}{\\var{n}}=\\var{external}$°
\nInternal angle value = $\\frac{\\var{suminternal}}{\\var{n}}=\\var{internal}$°
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(3..10)", "description": "the number of sides of the polygon.
", "templateType": "anything", "can_override": false}, "images": {"name": "images", "group": "Ungrouped variables", "definition": "['triangle_eaATLjo.png','quadrilateral.png','pentagon.png','hexagon.png','septagon.png','octagon.png','nonagon.png','decagon.png']", "description": "", "templateType": "anything", "can_override": false}, "chosenimage": {"name": "chosenimage", "group": "Ungrouped variables", "definition": "images[n-3]", "description": "", "templateType": "anything", "can_override": false}, "sumexternal": {"name": "sumexternal", "group": "Ungrouped variables", "definition": "360", "description": "", "templateType": "anything", "can_override": false}, "suminternal": {"name": "suminternal", "group": "Ungrouped variables", "definition": "n*180-360", "description": "", "templateType": "anything", "can_override": false}, "external": {"name": "external", "group": "Ungrouped variables", "definition": "sumexternal/n", "description": "", "templateType": "anything", "can_override": false}, "internal": {"name": "internal", "group": "Ungrouped variables", "definition": "suminternal/n", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "images", "chosenimage", "sumexternal", "suminternal", "external", "internal"], "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": "Sum of external angles: | \n[[0]]° | \n
Sum of internal angles: | \n[[1]]° | \n
Value of each external angle: | \n[[2]]° | \n
Value of each internal angle: | \n[[3]]° | \n