// 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)}

\n

Complete the following table for a regular polygon with {n} sides.

\n

", "advice": "

Sum of external angles for all polygons = $360$°

\n

Sum of internal angles is $180\\times(n-2) = \\var{suminternal}$°

\n

External angle value = $\\frac{360}{\\var{n}}=\\var{external}$°

\n

Internal 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": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Sum of external angles:[[0]]°
Sum of internal angles:[[1]]°
Value of each external angle:[[2]]°
Value of each internal angle:[[3]]°
\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": "sumexternal", "maxValue": "sumexternal", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "suminternal", "maxValue": "suminternal", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "floor(external)", "maxValue": "ceil(external)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "floor(internal)", "maxValue": "ceil(internal)", "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", "type": "question", "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/"}]}