// Numbas version: finer_feedback_settings {"name": "WP Math 11 Midterm", "metadata": {"description": "

Contains some questions from mini-tests which should be changed.

", "licence": "None specified"}, "duration": 0, "percentPass": "0", "showQuestionGroupNames": false, "shuffleQuestionGroups": true, "showstudentname": false, "question_groups": [{"name": "Problems slope/grade/tangent", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "E Slopes/tan/grade problems", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A farmer needs to ensure proper drainage in a 400-meter long field with a required elevation drop of 2 meters to prevent waterlogging.

\n

Determine the angle of elevation of the ramp (round to the nearest degree). [[0]]

\n

Express the slope of the ramp as a percentage. [[1]]

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

The tangent ratio of a wheelchair ramp is 5/12.

\n

Determine the angle of elevation of the ramp (round to the nearest degree). [[0]]

\n

Express the slope of the ramp as a percentage. [[1]]

\n

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

A homeowner is paving a new driveway that needs to ascend 2 feet from the street to the garage. With a desired slope of 1/6 for ease of access.

\n

How long will the driveway be from the street to the garage? 

\n

[[0]]

\n

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "2*6", "maxValue": "2*6", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A 4 km section of the Trans-Canada Highway (Hwy 1) through the Fraser Valley has a constant grade of 2%. Calculate the change in elevation (in meters) for vehicles traveling this section of the highway.

\n

[[0]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "4000*0.02", "maxValue": "4000*0.02", "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"}]}, {"name": "Trigonometry", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", ""], "variable_overrides": [[], []], "questions": [{"name": "K's copy of Trigonometry: Right angled: Find approx side lengths", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [["question-resources/undefined_YwBJcjH", "/srv/numbas/media/question-resources/undefined_YwBJcjH"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": ["epphys", "JSXgraph", "Jsxgraph", "jsxgraph", "triangle", "Triangle", "trig", "Trigonometry", "trigonometry"], "metadata": {"description": "

A right-angled triangle is displayed either pointing left or right with one of the other angles and one of the sides given. Use SOH CAH TOA to find the side indicated with an x.

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

Based on the sides that we have and are interested in we use

\n

$\\sin \\theta = \\dfrac{\\text{opposite}}{\\text{hypotenuse}}$ $\\cos \\theta = \\dfrac{\\text{adjacent}}{\\text{hypotenuse}}$ $\\tan \\theta = \\dfrac{\\text{opposite}}{\\text{adjacent}}$

\n

and substitute in the values that we have

\n

$\\sin \\var{anglelist[0]}^\\circ = \\dfrac{\\var{v}}{\\var{d}}$. $\\cos \\var{anglelist[0]}^\\circ = \\dfrac{\\var{h}}{\\var{d}}$. $\\tan \\var{anglelist[0]}^\\circ= \\dfrac{\\var{v}}{\\var{h}}$. $\\sin \\var{anglelist[0]}^\\circ = \\dfrac{\\var{h}}{\\var{d}}$. $\\cos \\var{anglelist[0]}^\\circ = \\dfrac{\\var{v}}{\\var{d}}$. $\\tan \\var{anglelist[0]}^\\circ= \\dfrac{\\var{h}}{\\var{v}}$.

\n

To solve this equation for $x$ we multiply both sides of the equation by the denominator. To solve this equation for $x$ we multiply both sides of the equation by the denominator and then divide both sides of the equation by the trig term.

\n

$x=\\dfrac{\\var{h}}{\\cos \\var{anglelist[0]}^\\circ}$ $x=\\var{d}\\cos \\var{anglelist[0]}^\\circ$ $x=\\dfrac{\\var{v}}{\\sin \\var{anglelist[0]}^\\circ}$ $x=\\dfrac{\\var{v}}{\\tan \\var{anglelist[0]}^\\circ}$ $x=\\var{d}\\sin \\var{anglelist[0]}^\\circ$ $x=\\var{h}\\tan \\var{anglelist[0]}^\\circ$

\n

$x=\\dfrac{\\var{h}}{\\sin \\var{anglelist[0]}^\\circ}$ $x=\\var{d}\\sin \\var{anglelist[0]}^\\circ$ $x=\\dfrac{\\var{v}}{\\cos \\var{anglelist[0]}^\\circ}$ $x=\\var{v}\\tan \\var{anglelist[0]}^\\circ$ $x=\\var{d}\\cos \\var{anglelist[0]}^\\circ$ $x=\\dfrac{\\var{h}}{\\tan \\var{anglelist[0]}^\\circ}$

\n

A calculator (in degrees mode) evaluates this as $\\var{ans}\\ldots$ which we round to one decimal place as $\\var{precround(ans,1)}$

", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"deltax": {"name": "deltax", "group": "Ungrouped variables", "definition": "precround(-12+2*triples[1]/triples[0],4)", "description": "", "templateType": "anything", "can_override": false}, "thetaans": {"name": "thetaans", "group": "Ungrouped variables", "definition": "if(vec1=[0,1,2], h/cos(rsang),\nif(vec1=[0,2,1], d*cos(rsang),\nif(vec1=[1,0,2], v/sin(rsang),\nif(vec1=[1,2,0], v/tan(rsang),\nif(vec1=[2,0,1], d*sin(rsang),\nif(vec1=[2,1,0], h*tan(rsang),\n'error'))))))", "description": "

answer using theta (lower angle in diagram)

", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "if(anglelist[1]=3, thetaans, phians)", "description": "

I think I just calculated the answer two different ways

", "templateType": "anything", "can_override": false}, "display_angles1": {"name": "display_angles1", "group": "Ungrouped variables", "definition": "display_angles[1]", "description": "", "templateType": "anything", "can_override": false}, "rsang": {"name": "rsang", "group": "Ungrouped variables", "definition": "smallest_angle*pi/180", "description": "

radians smallest angle

", "templateType": "anything", "can_override": false}, "display_angles": {"name": "display_angles", "group": "Ungrouped variables", "definition": "if(anglelist[1]=3,[smallest_angle,''],['',complement])", "description": "

used in jsxgraph

", "templateType": "anything", "can_override": false}, "display_angles0": {"name": "display_angles0", "group": "Ungrouped variables", "definition": "display_angles[0]", "description": "", "templateType": "anything", "can_override": false}, "vec1": {"name": "vec1", "group": "Ungrouped variables", "definition": "shuffle([0,1,2])", "description": "

shuffles which edge is shortest

", "templateType": "anything", "can_override": false}, "triples": {"name": "triples", "group": "Ungrouped variables", "definition": "random([[3, 4, 5], [5, 12, 13], [7, 24, 25], [8, 15, 17], [9, 40, 41], [11, 60, 61], [12, 35, 37], [16, 63, 65], [20, 21, 29], [20, 99, 101], [24, 143, 145], [28, 45, 53], [33, 56, 65], [36, 77, 85], [39, 80, 89], [44, 117, 125], [48, 55, 73], [51, 140, 149], [52, 165, 173], [57, 176, 185], [60, 91, 109], [60, 221, 229], [65, 72, 97], [68, 285, 293], [69, 260, 269], [75, 308, 317], [76, 357, 365], [84, 187, 205], [84, 437, 445], [85, 132, 157], [87, 416, 425], [88, 105, 137], [92, 525, 533], [93, 476, 485], [95, 168, 193], [96, 247, 265], [100, 621, 629], [104, 153, 185], [105, 208, 233], [105, 608, 617], [111, 680, 689], [115, 252, 277], [119, 120, 169], [120, 209, 241], [120, 391, 409], [132, 475, 493], [133, 156, 205], [135, 352, 377], [136, 273, 305], [140, 171, 221], [145, 408, 433], [152, 345, 377], [155, 468, 493], [156, 667, 685], [160, 231, 281], [161, 240, 289], [165, 532, 557], [168, 425, 457], [168, 775, 793], [175, 288, 337], [180, 299, 349], [184, 513, 545], [185, 672, 697], [189, 340, 389], [195, 748, 773], [200, 609, 641], [203, 396, 445], [204, 253, 325], [205, 828, 853], [207, 224, 305], [215, 912, 937], [216, 713, 745], [217, 456, 505], [220, 459, 509], [225, 272, 353], [228, 325, 397], [231, 520, 569], [232, 825, 857], [240, 551, 601], [248, 945, 977], [252, 275, 373], [259, 660, 709], [260, 651, 701], [261, 380, 461], [273, 736, 785], [276, 493, 565], [279, 440, 521], [280, 351, 449], [280, 759, 809], [287, 816, 865], [297, 304, 425], [300, 589, 661], [301, 900, 949], [308, 435, 533], [315, 572, 653], [319, 360, 481], [333, 644, 725], [336, 377, 505], [336, 527, 625], [341, 420, 541], [348, 805, 877], [364, 627, 725], [368, 465, 593], [369, 800, 881], [372, 925, 997], [385, 552, 673], [387, 884, 965], [396, 403, 565], [400, 561, 689], [407, 624, 745], [420, 851, 949], [429, 460, 629], [429, 700, 821], [432, 665, 793], [451, 780, 901], [455, 528, 697], [464, 777, 905], [468, 595, 757], [473, 864, 985], [481, 600, 769], [504, 703, 865], [533, 756, 925], [540, 629, 829], [555, 572, 797], [580, 741, 941], [615, 728, 953], [616, 663, 905], [696, 697, 985]])\n", "description": "

Some the following were too skinny and so were removed.

use https://www.mathsisfun.com/numbers/pythagorean-triples.html

\n


random([[3,4,5], [5,12,13], [7,24,25], [8,15,17], [9,40,41],
[11,60,61], [12,35,37], [13,84,85], [15,112,113], [16,63,65],
[19,180,181], [20,21,29], [20,99,101],
[23,264,265], [24,143,145], [25,312,313], [27,364,365], [28,45,53],
[28,195,197], [31,480,481], [32,255,257], [33,56,65],
[33,544,545], [35,612,613], [36,77,85], [36,323,325], [37,684,685],
[39,80,89], [40,399,401], [41,840,841], [43,924,925],
[44,117,125], [44,483,485], [48,55,73], [48,575,577], [51,140,149],
[52,165,173], [52,675,677], [56,783,785], [57,176,185], [60,91,109],
[60,221,229], [60,899,901], [65,72,97], [68,285,293], [69,260,269],
[75,308,317], [76,357,365], [84,187,205], [84,437,445], [85,132,157],
[87,416,425], [88,105,137], [92,525,533], [93,476,485], [95,168,193],
[96,247,265], [100,621,629], [104,153,185], [105,208,233], [105,608,617],
[108,725,733], [111,680,689], [115,252,277], [116,837,845], [119,120,169],
[120,209,241], [120,391,409], [123,836,845], [129,920,929],
[132,475,493], [133,156,205], [135,352,377], [136,273,305], [140,171,221],
[145,408,433], [152,345,377], [155,468,493], [156,667,685], [160,231,281],
[161,240,289], [165,532,557], [168,425,457], [168,775,793], [175,288,337],
[180,299,349], [184,513,545], [185,672,697], [189,340,389], [195,748,773],
[200,609,641], [203,396,445], [204,253,325], [205,828,853], [207,224,305],
[215,912,937], [216,713,745], [217,456,505], [220,459,509], [225,272,353],
[228,325,397], [231,520,569], [232,825,857], [240,551,601], [248,945,977],
[252,275,373], [259,660,709], [260,651,701], [261,380,461], [273,736,785],
[276,493,565], [279,440,521], [280,351,449], [280,759,809], [287,816,865],
[297,304,425], [300,589,661], [301,900,949], [308,435,533], [315,572,653],
[319,360,481], [333,644,725], [336,377,505], [336,527,625], [341,420,541],
[348,805,877], [364,627,725], [368,465,593], [369,800,881], [372,925,997],
[385,552,673], [387,884,965], [396,403,565], [400,561,689], [407,624,745],
[420,851,949], [429,460,629], [429,700,821], [432,665,793], [451,780,901],
[455,528,697], [464,777,905], [468,595,757], [473,864,985], [481,600,769],
[504,703,865], [533,756,925], [540,629,829], [555,572,797], [580,741,941],
[615,728,953], [616,663,905], [696,697,985]])

", "templateType": "anything", "can_override": false}, "tritop": {"name": "tritop", "group": "Ungrouped variables", "definition": "precround(triples[0]*scale,4)/2", "description": "

top of triangle for jsxgraph, keeping same ratios.

", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "if(vec1[2]=1,triples[2],if(vec1[2]=0,'','$x$'))", "description": "

diagonal length in triangle

\n

\n

\n

so always integer and scale by k for more randomness.

", "templateType": "anything", "can_override": false}, "anglelist": {"name": "anglelist", "group": "Ungrouped variables", "definition": "random([smallest_angle,3,'$\\\\theta$'],[complement,4,'$\\\\phi$'])", "description": "

[precround(180*arctan(triples[0]/triples[1])/pi,0),90-precround(180*arctan(triples[0]/triples[1])/pi,0)]

", "templateType": "anything", "can_override": false}, "smallest_angle": {"name": "smallest_angle", "group": "Ungrouped variables", "definition": "precround(180*arctan(triples[0]/triples[1])/pi,0)", "description": "", "templateType": "anything", "can_override": false}, "phians": {"name": "phians", "group": "Ungrouped variables", "definition": "if(vec1=[0,1,2], h/sin(rcang),\nif(vec1=[0,2,1], d*sin(rcang),\nif(vec1=[1,0,2], v/cos(rcang),\nif(vec1=[1,2,0], v*tan(rcang),\nif(vec1=[2,0,1], d*cos(rcang),\nif(vec1=[2,1,0], h/tan(rcang),\n'error'))))))", "description": "

ans using phi (upper angle in diagram)

", "templateType": "anything", "can_override": false}, "scale": {"name": "scale", "group": "Ungrouped variables", "definition": "24/triples[1]", "description": "", "templateType": "anything", "can_override": false}, "rcang": {"name": "rcang", "group": "Ungrouped variables", "definition": "complement*pi/180", "description": "

radians complement angle

", "templateType": "anything", "can_override": false}, "switcharoo": {"name": "switcharoo", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "

determines which orientation the triangle is displayed as

", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "if(vec1[1]=1,triples[1],if(vec1[1]=0,'','$x$'))", "description": "

horizontal length in triangle

", "templateType": "anything", "can_override": false}, "complement": {"name": "complement", "group": "Ungrouped variables", "definition": "90-smallest_angle", "description": "", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "if(vec1[0]=1,triples[0],if(vec1[0]=0,'','$x$'))", "description": "

vertical length in triangle

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["triples", "vec1", "v", "h", "d", "scale", "tritop", "deltax", "switcharoo", "smallest_angle", "complement", "anglelist", "display_angles", "display_angles0", "display_angles1", "rsang", "rcang", "ans", "thetaans", "phians"], "variable_groups": [], "functions": {"otherway": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',{boundingBox:[-17,17,14,-14],grid:false,axis:false});\nvar board = div.board;\n\n//Doesn't look like you need this\nJXG.Options.text.useMathJax = true;\n\n// get the height of the triangle\nTT = Numbas.jme.unwrapValue(scope.variables.tritop);\ndx = Numbas.jme.unwrapValue(scope.variables.deltax);\nh = Numbas.jme.unwrapValue(scope.variables.h);\nv = Numbas.jme.unwrapValue(scope.variables.v);\nd = Numbas.jme.unwrapValue(scope.variables.d);\ntheta = Numbas.jme.unwrapValue(scope.variables.display_angles0);\nphi = Numbas.jme.unwrapValue(scope.variables.display_angles1);\n\n// create the horizontal line\nvar hor = board.create('line',[[-12,-TT],[12,-TT]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the vertical line\nvar vert = board.create('line',[[-12,-TT],[-12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the diagonal line\nvar vert = board.create('line',[[12,-TT],[-12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the box for right angle\nboard.create('line',[[(-12+0.1*TT),-TT],[(-12+0.1*TT),-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\nboard.create('line',[[(-12+0.1*TT),-TT*0.9],[-12,-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//label the angle theta\nif (theta == '') {\n} else {\nboard.create('text',[5.5,-4*TT/5,\n function() { \n return theta + \"\\u00B0\";\n }], {fontSize:20,fixed: true});\n}\n\n//label the angle phi\nif (phi == '') {\n} else {\nboard.create('text',[-11.5,3*TT/5,\n function() { \n return phi + \"\\u00B0\";\n }], {fontSize:20,fixed: true});\n}\n\n//display the side lengths\nvar vtext= board.create('text',[-15,0,v], {fontSize:20,fixed: true});\nvar htext= board.create('text',[-2,-TT-1,h], {fontSize:20,fixed: true});\nvar dtext= board.create('text',[-2,TT/2+0.3,d], {fontSize:20,fixed: true});\n\n//can't figure out how to rotate text. http://jsxgraph.uni-bayreuth.de/wiki/index.php/Texts_and_Transformations suggests the following\n//var tRot = board.create('transform', [Math.PI/2, 13,0], {type:'rotate'}); \n//tRot.bindTo(vtext);\n\n\n\n\nreturn div;\n\n"}, "triangle": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',{boundingBox:[-13,13,17,-17],grid:false,axis:false});\nvar board = div.board;\n\n//Doesn't look like you need this\nJXG.Options.text.useMathJax = true;\n\n// get the height of the triangle\nTT = Numbas.jme.unwrapValue(scope.variables.tritop);\ndx = Numbas.jme.unwrapValue(scope.variables.deltax);\nh = Numbas.jme.unwrapValue(scope.variables.h);\nv = Numbas.jme.unwrapValue(scope.variables.v);\nd = Numbas.jme.unwrapValue(scope.variables.d);\ntheta = Numbas.jme.unwrapValue(scope.variables.display_angles0);\nphi = Numbas.jme.unwrapValue(scope.variables.display_angles1);\n\n// create the horizontal line\nvar hor = board.create('line',[[-12,-TT],[12,-TT]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the vertical line\nvar vert = board.create('line',[[12,-TT],[12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the diagonal line\nvar vert = board.create('line',[[-12,-TT],[12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the box for right angle\nboard.create('line',[[(12-0.1*TT),-TT],[(12-0.1*TT),-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\nboard.create('line',[[(12-0.1*TT),-TT*0.9],[12,-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//label the angle theta\nif (theta == '') {\n} else {\nboard.create('text',[-7.2,-4*TT/5,\n function() { \n return theta + \"\\u00B0\";\n }], {fontSize:20,fixed: true});\n}\n\n//label the angle phi\nif (phi == ''){\n} else {\n board.create('text',[9.6,3*TT/5,\n function() { \n return phi + \"\\u00B0\";\n }], {fontSize:20,fixed: true});\n}\n \n//display the side lengths\nvar vtext= board.create('text',[12.5,0,v], {fontSize:20,fixed: true});\nvar htext= board.create('text',[0,-TT-1,h], {fontSize:20,fixed: true});\nvar dtext= board.create('text',[0,TT/2+0.3,d], {fontSize:20,fixed: true});\n\n//can't figure out how to rotate text. http://jsxgraph.uni-bayreuth.de/wiki/index.php/Texts_and_Transformations suggests the following\n//var tRot = board.create('transform', [Math.PI/2, 13,0], {type:'rotate'}); \n//tRot.bindTo(vtext);\n\n\n\n\nreturn div;\n\n"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Given the triangle described below, the value of $x$ is [[0]] to 1 decimal place.

\n

{if(switcharoo=0,triangle(),otherway())}

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ans", "maxValue": "ans", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": "1", "precisionPartialCredit": "50", "precisionMessage": "

You have not given your answer to the correct precision.

", "strictPrecision": false, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "K's copy of Trigonometry: Right angled: Finding trig ratios", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [["question-resources/undefined_YwBJcjH", "/srv/numbas/media/question-resources/undefined_YwBJcjH"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": ["epphys", "JSXgraph", "Jsxgraph", "jsxgraph", "trig", "Trigonometry", "trigonometry"], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"anglelist": {"name": "anglelist", "group": "Ungrouped variables", "definition": "random(['$\\\\theta$',3],['$\\\\phi$',4])", "description": "", "templateType": "anything", "can_override": false}, "ans1num": {"name": "ans1num", "group": "Ungrouped variables", "definition": "if((anglelist[1]=3 and ratio[1]=0) or (anglelist[1]=4 and ratio[1]=1),v,\n if((anglelist[1]=3 and ratio[1]=1) or (anglelist[1]=4 and ratio[1]=0),h,\n if(anglelist[1]=3 and ratio[1]=2 ,v,\n if(anglelist[1]=4 and ratio[1]=2 ,h,'error'))))", "description": "", "templateType": "anything", "can_override": false}, "scale": {"name": "scale", "group": "Ungrouped variables", "definition": "24/h", "description": "", "templateType": "anything", "can_override": false}, "triples": {"name": "triples", "group": "Ungrouped variables", "definition": "random([[3, 4, 5], [5, 12, 13], [7, 24, 25], [8, 15, 17], [9, 40, 41], [11, 60, 61], [12, 35, 37], [16, 63, 65], [20, 21, 29], [20, 99, 101], [24, 143, 145], [28, 45, 53], [33, 56, 65], [36, 77, 85], [39, 80, 89], [44, 117, 125], [48, 55, 73], [51, 140, 149], [52, 165, 173], [57, 176, 185], [60, 91, 109], [60, 221, 229], [65, 72, 97], [68, 285, 293], [69, 260, 269], [75, 308, 317], [76, 357, 365], [84, 187, 205], [84, 437, 445], [85, 132, 157], [87, 416, 425], [88, 105, 137], [92, 525, 533], [93, 476, 485], [95, 168, 193], [96, 247, 265], [100, 621, 629], [104, 153, 185], [105, 208, 233], [105, 608, 617], [111, 680, 689], [115, 252, 277], [119, 120, 169], [120, 209, 241], [120, 391, 409], [132, 475, 493], [133, 156, 205], [135, 352, 377], [136, 273, 305], [140, 171, 221], [145, 408, 433], [152, 345, 377], [155, 468, 493], [156, 667, 685], [160, 231, 281], [161, 240, 289], [165, 532, 557], [168, 425, 457], [168, 775, 793], [175, 288, 337], [180, 299, 349], [184, 513, 545], [185, 672, 697], [189, 340, 389], [195, 748, 773], [200, 609, 641], [203, 396, 445], [204, 253, 325], [205, 828, 853], [207, 224, 305], [215, 912, 937], [216, 713, 745], [217, 456, 505], [220, 459, 509], [225, 272, 353], [228, 325, 397], [231, 520, 569], [232, 825, 857], [240, 551, 601], [248, 945, 977], [252, 275, 373], [259, 660, 709], [260, 651, 701], [261, 380, 461], [273, 736, 785], [276, 493, 565], [279, 440, 521], [280, 351, 449], [280, 759, 809], [287, 816, 865], [297, 304, 425], [300, 589, 661], [301, 900, 949], [308, 435, 533], [315, 572, 653], [319, 360, 481], [333, 644, 725], [336, 377, 505], [336, 527, 625], [341, 420, 541], [348, 805, 877], [364, 627, 725], [368, 465, 593], [369, 800, 881], [372, 925, 997], [385, 552, 673], [387, 884, 965], [396, 403, 565], [400, 561, 689], [407, 624, 745], [420, 851, 949], [429, 460, 629], [429, 700, 821], [432, 665, 793], [451, 780, 901], [455, 528, 697], [464, 777, 905], [468, 595, 757], [473, 864, 985], [481, 600, 769], [504, 703, 865], [533, 756, 925], [540, 629, 829], [555, 572, 797], [580, 741, 941], [615, 728, 953], [616, 663, 905], [696, 697, 985]])\n", "description": "

Some the following were too skinny and so were removed.


random([[3,4,5], [5,12,13], [7,24,25], [8,15,17], [9,40,41],
[11,60,61], [12,35,37], [13,84,85], [15,112,113], [16,63,65],
[19,180,181], [20,21,29], [20,99,101],
[23,264,265], [24,143,145], [25,312,313], [27,364,365], [28,45,53],
[28,195,197], [31,480,481], [32,255,257], [33,56,65],
[33,544,545], [35,612,613], [36,77,85], [36,323,325], [37,684,685],
[39,80,89], [40,399,401], [41,840,841], [43,924,925],
[44,117,125], [44,483,485], [48,55,73], [48,575,577], [51,140,149],
[52,165,173], [52,675,677], [56,783,785], [57,176,185], [60,91,109],
[60,221,229], [60,899,901], [65,72,97], [68,285,293], [69,260,269],
[75,308,317], [76,357,365], [84,187,205], [84,437,445], [85,132,157],
[87,416,425], [88,105,137], [92,525,533], [93,476,485], [95,168,193],
[96,247,265], [100,621,629], [104,153,185], [105,208,233], [105,608,617],
[108,725,733], [111,680,689], [115,252,277], [116,837,845], [119,120,169],
[120,209,241], [120,391,409], [123,836,845], [129,920,929],
[132,475,493], [133,156,205], [135,352,377], [136,273,305], [140,171,221],
[145,408,433], [152,345,377], [155,468,493], [156,667,685], [160,231,281],
[161,240,289], [165,532,557], [168,425,457], [168,775,793], [175,288,337],
[180,299,349], [184,513,545], [185,672,697], [189,340,389], [195,748,773],
[200,609,641], [203,396,445], [204,253,325], [205,828,853], [207,224,305],
[215,912,937], [216,713,745], [217,456,505], [220,459,509], [225,272,353],
[228,325,397], [231,520,569], [232,825,857], [240,551,601], [248,945,977],
[252,275,373], [259,660,709], [260,651,701], [261,380,461], [273,736,785],
[276,493,565], [279,440,521], [280,351,449], [280,759,809], [287,816,865],
[297,304,425], [300,589,661], [301,900,949], [308,435,533], [315,572,653],
[319,360,481], [333,644,725], [336,377,505], [336,527,625], [341,420,541],
[348,805,877], [364,627,725], [368,465,593], [369,800,881], [372,925,997],
[385,552,673], [387,884,965], [396,403,565], [400,561,689], [407,624,745],
[420,851,949], [429,460,629], [429,700,821], [432,665,793], [451,780,901],
[455,528,697], [464,777,905], [468,595,757], [473,864,985], [481,600,769],
[504,703,865], [533,756,925], [540,629,829], [555,572,797], [580,741,941],
[615,728,953], [616,663,905], [696,697,985]])

", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "triples[2]", "description": "

use https://www.mathsisfun.com/numbers/pythagorean-triples.html

\n

\n

so always integer and scale by k for more randomness.

", "templateType": "anything", "can_override": false}, "deltax": {"name": "deltax", "group": "Ungrouped variables", "definition": "precround(-12+2*h/v,4)", "description": "", "templateType": "anything", "can_override": false}, "h": {"name": "h", "group": "Ungrouped variables", "definition": "triples[1]", "description": "", "templateType": "anything", "can_override": false}, "question": {"name": "question", "group": "Ungrouped variables", "definition": "ratio[0]", "description": "", "templateType": "anything", "can_override": false}, "ans1den": {"name": "ans1den", "group": "Ungrouped variables", "definition": "if((anglelist[1]=3 and ratio[1]=0) or (anglelist[1]=4 and ratio[1]=1),d,\n if((anglelist[1]=3 and ratio[1]=1) or (anglelist[1]=4 and ratio[1]=0),d,\n if(anglelist[1]=3 and ratio[1]=2 ,h,\n if(anglelist[1]=4 and ratio[1]=2 ,v,'error'))))", "description": "", "templateType": "anything", "can_override": false}, "v": {"name": "v", "group": "Ungrouped variables", "definition": "triples[0]", "description": "", "templateType": "anything", "can_override": false}, "ratio": {"name": "ratio", "group": "Ungrouped variables", "definition": "random(['$\\\\sin(\\\\var{angle})$',0],['$\\\\cos(\\\\var{angle})$',1],['$\\\\tan(\\\\var{angle})$',2])", "description": "", "templateType": "anything", "can_override": false}, "angle": {"name": "angle", "group": "Ungrouped variables", "definition": "anglelist[0]", "description": "", "templateType": "anything", "can_override": false}, "tritop": {"name": "tritop", "group": "Ungrouped variables", "definition": "precround(v*scale,4)/2", "description": "

top of triangle for jsxgraph, keeping same ratios.

", "templateType": "anything", "can_override": false}, "switcharoo": {"name": "switcharoo", "group": "Ungrouped variables", "definition": "random(0,1)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["triples", "v", "h", "d", "anglelist", "angle", "ratio", "question", "ans1num", "ans1den", "scale", "tritop", "deltax", "switcharoo"], "variable_groups": [], "functions": {"otherway": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',{boundingBox:[-17,17,14,-14],grid:false,axis:false});\nvar board = div.board;\n\n//Doesn't look like you need this\nJXG.Options.text.useMathJax = true;\n\n// get the height of the triangle\nTT = Numbas.jme.unwrapValue(scope.variables.tritop);\ndx = Numbas.jme.unwrapValue(scope.variables.deltax);\nh = Numbas.jme.unwrapValue(scope.variables.h);\nv = Numbas.jme.unwrapValue(scope.variables.v);\nd = Numbas.jme.unwrapValue(scope.variables.d);\n\n\n// create the horizontal line\nvar hor = board.create('line',[[-12,-TT],[12,-TT]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the vertical line\nvar vert = board.create('line',[[-12,-TT],[-12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the diagonal line\nvar vert = board.create('line',[[12,-TT],[-12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the box for right angle\nboard.create('line',[[(-12+0.1*TT),-TT],[(-12+0.1*TT),-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\nboard.create('line',[[(-12+0.1*TT),-TT*0.9],[-12,-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//these are the guides for angle label\n//var p1 = board.create('point', [-12*6/10, -6*TT/10]);\n//var p2 = board.create('point', [-12*6/10, -TT]);\n//var p3 = board.create('point', [12, 3*TT/5]);\n//var p4 = board.create('point', [12*6/10, 3*TT/5]);\n\n\n//label the angle theta\nboard.create('text',[+6.2,-4*TT/5,\n function() { \n return '$\\\\theta$';\n }], {fontSize:20,fixed: true});\n\n//label the angle phi\nboard.create('text',[-11,3*TT/5,\n function() { \n return '$\\\\phi$';\n }], {fontSize:20,fixed: true});\n\n\n//display the side lengths\nvar vtext= board.create('text',[-16,0,1*v+' m'], {fontSize:20,fixed: true});\nvar htext= board.create('text',[-2,-TT-1,1*h+' m'], {fontSize:20,fixed: true});\nvar dtext= board.create('text',[-2,TT/2+0.3,1*d+' m'], {fontSize:20,fixed: true});\n\n//can't figure out how to rotate text. http://jsxgraph.uni-bayreuth.de/wiki/index.php/Texts_and_Transformations suggests the following\n//var tRot = board.create('transform', [Math.PI/2, 13,0], {type:'rotate'}); \n//tRot.bindTo(vtext);\n\n\n\n\nreturn div;\n\n"}, "triangle": {"parameters": [], "type": "html", "language": "javascript", "definition": "var div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',{boundingBox:[-13,13,17,-17],grid:false,axis:false});\nvar board = div.board;\n\n//Doesn't look like you need this\nJXG.Options.text.useMathJax = true;\n\n// get the height of the triangle\nTT = Numbas.jme.unwrapValue(scope.variables.tritop);\ndx = Numbas.jme.unwrapValue(scope.variables.deltax);\nh = Numbas.jme.unwrapValue(scope.variables.h);\nv = Numbas.jme.unwrapValue(scope.variables.v);\nd = Numbas.jme.unwrapValue(scope.variables.d);\n\n\n// create the horizontal line\nvar hor = board.create('line',[[-12,-TT],[12,-TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the vertical line\nvar vert = board.create('line',[[12,-TT],[12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the diagonal line\nvar vert = board.create('line',[[-12,-TT],[12,TT/1]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//create the box for right angle\nboard.create('line',[[(12-0.1*TT),-TT],[(12-0.1*TT),-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\nboard.create('line',[[(12-0.1*TT),-TT*0.9],[12,-TT*0.9]], { straightFirst:false, straightLast:false, strokeColor: 'black', fixed: true});\n\n//these are the guides for angle label\n//var p1 = board.create('point', [-12*6/10, -6*TT/10]);\n//var p2 = board.create('point', [-12*6/10, -TT]);\n//var p3 = board.create('point', [12, 3*TT/5]);\n//var p4 = board.create('point', [12*6/10, 3*TT/5]);\n\n\n//label the angle theta\nboard.create('text',[-7.2,-4*TT/5,\n function() { \n return '$\\\\theta$';\n }], {fontSize:20,fixed: true});\n\n//label the angle phi\nboard.create('text',[9.6,3*TT/5,\n function() { \n return '$\\\\phi$';\n }], {fontSize:20,fixed: true});\n\n\n//display the side lengths\nvar vtext= board.create('text',[12.5,0,v+' m'], {fontSize:20,fixed: true});\nvar htext= board.create('text',[0,-TT-1,h+' m'], {fontSize:20,fixed: true});\nvar dtext= board.create('text',[0,TT/2+0.3,d+' m'], {fontSize:20,fixed: true});\n\n//can't figure out how to rotate text. http://jsxgraph.uni-bayreuth.de/wiki/index.php/Texts_and_Transformations suggests the following\n//var tRot = board.create('transform', [Math.PI/2, 13,0], {type:'rotate'}); \n//tRot.bindTo(vtext);\n\n\n\n\nreturn div;\n\n"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

{if(switcharoo=0,triangle(),otherway())}

\n

Given the triangle described above, the value of {question} is [[0]].

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{ans1num}/{ans1den}", "maxValue": "{ans1num}/{ans1den}", "correctAnswerFraction": true, "allowFractions": true, "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"}]}, {"name": "Graphs", "pickingStrategy": "all-shuffled", "pickQuestions": 1, "questionNames": ["", "", "", "", ""], "variable_overrides": [[], [], [], [], []], "questions": [{"name": "E bar graph", "extensions": ["eukleides", "geogebra", "graph-theory", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

{t1}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"t1": {"name": "t1", "group": "Ungrouped variables", "definition": "jsxgraph( 320,245,[-2,8,16,-1],[\n's1':['segment', [[0, 0], [0, 6]],['fixed':true,'color':'#000000']],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: true,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[0,1],\n majorHeight:410,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n'week 1':['point',[12.75,5],[color:'#f05080',size:0, 'fixed':true,'showInfobox':false]],\n'week 2':['point',[12.75,4],[color:'#5050a0',size:0,'fixed':true,'showInfobox':false]],\n'p2':['point',[12.75,5.3],[color:'#50a050','fixed':true,'withLabel':false,'showInfobox':false]],\n'p3':['point',[12.75,4.3],[color:'#5050a0','fixed':true,'withLabel':false,'showInfobox':false]],\n\n's2':['segment', [[0, 0], [11.75, 0]],['fixed':true,'color':'#000000']],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,0],\n majorHeight:000,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n'Acer':['point',[0.4,-0.9],[size:0,'fixed':true,'showInfobox':false]],\n'Dell':['point',[3.45,-0.9],[size:0,'fixed':true,'showInfobox':false]],\n'HP':['point',[6.5,-0.9],[size:0,'fixed':true,'showInfobox':false]],\n'Lenovo':['point',[8.95,-0.9],[size:0,'fixed':true,'showInfobox':false]],\n'Computer Sales':['point',[2.74,7],[size:0,'fixed':true,'showInfobox':false,'label':['fontSize':17]]],\n'Sales per week':['point',[-1.75,1],[size:0,'fixed':true,'showInfobox':false,'label':[rotate:90]]],\n'c':[\n'chart', [\n5,3,0,\n3,2,0,\n3,4,0,\n1,5,0\n],\n[chartStyle:'bar','fixed':true,\ncolors:[\n\"#50a050\",\"#5050a0\",\"#50a050\",\n\"#50a050\",\"#5050a0\",\"#50a050\",\n\"#50a050\",\"#5050a0\",\"#50a050\",\n],\nsize:2,width:-0.9]],\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t2": {"name": "t2", "group": "Ungrouped variables", "definition": "jsxgraph( 320,250,[-5,7,11,-5],[\n'c':['chart', [12,45,34,3], \n[chartStyle:'pie',\ncolors:['#502010','#e0d0b0','#f05080','#c05020'],\n strokeColor:'#',\n]],\n'p1':['point',[6,3],['color':'#502010','fixed':true,'withLabel':false,'showInfobox':false]],\n'p2':['point',[6,2],[color:'#e0d0b0','fixed':true,'withLabel':false,'showInfobox':false]],\n'p3':['point',[6,1],[color:'#f05080','fixed':true,'withLabel':false,'showInfobox':false]],\n'p4':['point',[6,0],[color:'#c05020','fixed':true,'withLabel':false,'showInfobox':false]],\n\n'Chocolate':['point',[6,3-0.5],[size:0,'fixed':true,'showInfobox':false]],\n'Vanilla':['point',[6,2-0.5],[size:0,'fixed':true,'showInfobox':false]],\n'Strawberry':['point',[6,1-0.5],[size:0,'fixed':true,'showInfobox':false]],\n'Other':['point',[6,0-0.5],[size:0,'fixed':true,'showInfobox':false]],\n\n'Favorite Ice Cream Flavors':['point',[-1,5.5],[size:0,'fixed':true,'showInfobox':false]]\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t3": {"name": "t3", "group": "Ungrouped variables", "definition": "jsxgraph( 300,255,[-2+0.25,9,8-0.25,-1],[\n's1':['segment', [[0, 0], [0, 6]],['color':'#000000']],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: true,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[0,1],\n majorHeight:360,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n's2':['segment', [[0, 0], [6, 0]],['color':'#000000']],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,0],\n majorHeight:000,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n'Favorite Ice Cream Flavors':['point',[-0,7.5],[size:0,'fixed':true,'showInfobox':false]],\n'c':[\n'chart', [5,3,2,4,3.5],[chartStyle:'bar',\ncolors:[\"#50a050\",\"#a05050\",\"#a0a050\",\"#50a0a0\",\"#5050a0\"],\nlabels:['Ford','Toyota','Honda','Nissan','BMW'],\nsize:5,width:0]],\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["t1", "t2", "t3"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What was the highest total sales for one type?

", "minValue": "8", "maxValue": "8", "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": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What was the biggest increase in sales for one type?

", "minValue": "4", "maxValue": "4", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "E circle graph", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

{t1}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"t1": {"name": "t1", "group": "Ungrouped variables", "definition": "jsxgraph( 320,250,[-5,7,11,-5],[\n'c':['chart', [12,45,34,3], \n[chartStyle:'pie',\ncolors:['#502010','#e0d0b0','#f05080','#c05020'],\n strokeColor:'#',\n]],\n'p1':['point',[6,3],['color':'#502010','fixed':true,'withLabel':false,'showInfobox':false]],\n'p2':['point',[6,2],[color:'#e0d0b0','fixed':true,'withLabel':false,'showInfobox':false]],\n'p3':['point',[6,1],[color:'#f05080','fixed':true,'withLabel':false,'showInfobox':false]],\n'p4':['point',[6,0],[color:'#c05020','fixed':true,'withLabel':false,'showInfobox':false]],\n\n'Chocolate':['point',[6,3-0.5],[size:0,'fixed':true,'showInfobox':false]],\n'Vanilla':['point',[6,2-0.5],[size:0,'fixed':true,'showInfobox':false]],\n'Strawberry':['point',[6,1-0.5],[size:0,'fixed':true,'showInfobox':false]],\n'Other':['point',[6,0-0.5],[size:0,'fixed':true,'showInfobox':false]],\n\n'Favorite Ice Cream Flavors':['point',[-2.75,5.5],[size:0,'fixed':true,'showInfobox':false,'label':[fontSize:17]]]\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["t1"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which flavors are <25% of peoples favorite?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Chocolate, Other", "Chocolate, Strawberry", "Chocolate, Strawberry, Other", "Strawberry, Other"], "matrix": ["1", 0, 0, 0], "distractors": ["", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which flavor is the most popular?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Chocolate", "Strawberry", "Vanilla", "Other"], "matrix": ["0", 0, "1", 0], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "E line graph", "extensions": ["eukleides", "geogebra", "graph-theory", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

{t1}

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"t1": {"name": "t1", "group": "Ungrouped variables", "definition": "jsxgraph( 440,300,[-1,9,12,-2],[\n's1':['segment', [[1, 0], [1, 6]],['color':'#000000','fixed':true]],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: true,\nticksDistance: 10,\nscale:0.1,\n minorTicks: 0,\n \tanchor:0.33,\n includeBoundaries: true,\n strokeWidth:0.5,\n\nmajorTickEndings:[0,1],\n majorHeight:470,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n's2':['segment', [[1, 0], [8, 0]],['color':'#000000','fixed':true]],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[00,1],\n majorHeight:10,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\nl1:['segment',[[9,5.9],[9.5,5.9]],[strokeWidth:1.5,'fixed':true]],\nl2:['segment',[[9,4.9],[9.5,4.9]],[strokeWidth:1.5,strokeColor:\"#c05040\",'fixed':true]],\n\n'Sep':['point',[0.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Oct':['point',[1.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Nov':['point',[2.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Dec':['point',[3.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Jan':['point',[4.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Fed':['point',[5.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Mar':['point',[6.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Apr':['point',[7.65,-1.75],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n\n'Vancouver':['point',[9.5,5.5],['size':0,'fixed':true,'showInfobox':false]],\n'Toronto':['point',[9.5,4.5],['size':0,'fixed':true,'showInfobox':false]],\n'Temperature (\u00b0C)':['point',[-0.55,0.9],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n'Temperature Over Time':['point',[2.5,7.75],[size:0,'fixed':true,'showInfobox':false,'label':[fontSize:17]]],\n'c':[\n'chart', [3.7,3.1,2.3,1.75, 1.25,1.5,2.75,3.4 ],[chartStyle:'line',\ncolors:[\"#50a050\",\"#a05050\",\"#a0a050\",\"#50a0a0\",\"#5050a0\"],\ncenter: [-5,0],\nsize:1,width:0]],\n'c2':[\n'chart', [2.7,2.4,1.7,0.7, 0.5,1,2,3 ],[chartStyle:'line',strokeColor:\"#c05040\",\ncenter: [-5,0],\nsize:1,width:0]]\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t2": {"name": "t2", "group": "Ungrouped variables", "definition": "jsxgraph( 300,300,[-1.5,9,10.5,-2],[\n's1':['segment', [[1, 0], [1, 6.9]],['color':'#000000','fixed':true]],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: false,\nticksDistance: 10,\nscale:0.1,\n minorTicks: 0,\n \tanchor:-0.01,\n includeBoundaries: true,\n strokeWidth:0.5,\n\nmajorTickEndings:[1,1],\n majorHeight:10,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n's2':['segment', [[1, 0], [7.9, 0]],['color':'#000000','fixed':true]],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,1],\n majorHeight:10,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n\" \":['point',[2,1.5],[strokeWidth:1.5,'fixed':true,'showInfobox':false,'showLabels':false]],\n\" \":['point',[3,2],[strokeWidth:1.5,'fixed':true,'showInfobox':false,'showLabels':false]],\n\" \":['point',[4,3],[strokeWidth:1.5,'fixed':true,'showInfobox':false,'showLabels':false]],\n\n\" \":['point',[5,4.5],[strokeWidth:1.5,'fixed':true,'showInfobox':false,'showLabels':false]],\n\" \":['point',[6,6],[strokeWidth:1.5,'fixed':true,'showInfobox':false,'showLabels':false]],\n\n'10':['point',[1.4,-1.0],['size':0,'fixed':true,'showInfobox':false]],\n'20':['point',[2.4,-1.0],['size':0,'fixed':true,'showInfobox':false]],\n'30':['point',[3.4,-1.0],['size':0,'fixed':true,'showInfobox':false]],\n'40':['point',[4.4,-1.0],['size':0,'fixed':true,'showInfobox':false]],\n'50':['point',[5.4,-1.0],['size':0,'fixed':true,'showInfobox':false]],\n'60':['point',[6.4,-1.0],['size':0,'fixed':true,'showInfobox':false]],\n \n'1':['point',[0.1,0.6],['size':0,'fixed':true,'showInfobox':false]],\n'2':['point',[0.1,1.6],['size':0,'fixed':true,'showInfobox':false]],\n'3':['point',[0.1,2.6],['size':0,'fixed':true,'showInfobox':false]],\n'4':['point',[0.1,3.6],['size':0,'fixed':true,'showInfobox':false]],\n'5':['point',[0.1,4.6],['size':0,'fixed':true,'showInfobox':false]],\n'6':['point',[0.1,5.6],['size':0,'fixed':true,'showInfobox':false]],\n\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t3": {"name": "t3", "group": "Ungrouped variables", "definition": "jsxgraph( 250,225,[-2,7,11,-1],[\n's1':['segment', [[0, 0], [0, 5.5]],['fixed':true,'color':'#000000']],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: true,\n minorTicks: 0,\nticksDistance: 25,\nscale:0.05,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,1],\n majorHeight:7,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n\n's2':['segment', [[0, 0], [9.75, 0]],['fixed':true,'color':'#000000']],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,0],\n majorHeight:000,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n'Jan':['point',[0.4,-0.9],[size:0,'fixed':true,'showInfobox':false]],\n'Feb':['point',[3.45,-0.9],[size:0,'fixed':true,'showInfobox':false]],\n'Mar':['point',[6.5,-0.9],[size:0,'fixed':true,'showInfobox':false]],\n'c':[\n'chart', [\n1.7,3.3,0,\n2.5,4.5,0,\n4.2,5,0,\n],\n[chartStyle:'bar','fixed':true,\ncolors:[\n\"#50a0a0\",\"#a05050\",\"#50a050\",\n\"#50a0a0\",\"#a05050\",\"#50a050\",\n\"#50a0a0\",\"#a05050\",\"#50a050\",\n],\nsize:2.15,width:0.9]],\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t4": {"name": "t4", "group": "Ungrouped variables", "definition": "jsxgraph( 250,225,[-2,7,9,-1],[\n's1':['segment', [[0, 0], [0, 5.5]],['fixed':true,'color':'#000000']],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: true,\n minorTicks: 0,\nticksDistance: 5,\nscale:0.2,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,1],\n majorHeight:7,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n\n's2':['segment', [[0, 0], [6.75, 0]],['fixed':true,'color':'#000000']],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: true,\n minorTicks: 0,\n includeBoundaries: true,\nticksDistance: 1,\nscale:1.01,\n strokeWidth:0.5,\nmajorTickEndings:[1,1],\n majorHeight:0,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [2, -10]\n]\n]\n],\n'c':[\n'chart', [\n1,2,3,2.5,4.8,3.8\n],\n[chartStyle:'bar','fixed':true,\ncolors:[\n\"#a050a0\",\"#a050a0\",\"#a050a0\",\n\"#a050a0\",\"#a050a0\",\"#a050a0\",\n\"#a050a0\",\"#a050a0\",\"#a050a0\",\n],\nsize:1,width:0.9]],\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t5": {"name": "t5", "group": "Ungrouped variables", "definition": "jsxgraph( 250,250,[-6,6,6,-6],[\n'c':['chart', [25,25,30,20], \n[chartStyle:'pie',\ncolors:['#c03030','#3030c0','#30c030','#c0c030'],\n strokeColor:'#',\n]],\n\n'Apr':['point',[-3,2-0.75],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n'Jan':['point',[0.7,2-0.75],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n'Mar':['point',[-3,-1.5-0.5],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n'Feb':['point',[0.7,-1.5-0.5],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t6": {"name": "t6", "group": "Ungrouped variables", "definition": "jsxgraph( 380,300,[-2.5,8,9,-2],[\n's1':['segment', [[0, 0], [0, 6]],['color':'#000000','fixed':true]],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: true,\nticksDistance: 200,\nscale:0.0046,\n anchor:0.15,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\n\nmajorTickEndings:[1,1],\n majorHeight:10,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-10, 0]\n]\n]\n],\n's2':['segment', [[0, 0], [7, 0]],['color':'#000000','fixed':true]],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: false,\n minorTicks: 0,\nscale:1.2,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[00,1],\n majorHeight:10,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n\n'8am':['point',[0.5,-1],['size':0,'fixed':true,'showInfobox':false]],\n'2pm':['point',[1.7,-1],['size':0,'fixed':true,'showInfobox':false]],\n'8pm':['point',[2.9,-1],['size':0,'fixed':true,'showInfobox':false]],\n'8am ':['point',[4.1,-1],['size':0,'fixed':true,'showInfobox':false]],\n'2pm ':['point',[5.3,-1],['size':0,'fixed':true,'showInfobox':false]],\n \n'day 1':['point',[0.45,-1.4],['size':0,'fixed':true,'showInfobox':false]],\n'day 1 ':['point',[1.65,-1.4],['size':0,'fixed':true,'showInfobox':false]],\n'day 1 ':['point',[2.85,-1.4],['size':0,'fixed':true,'showInfobox':false]],\n'day 2':['point',[4.05,-1.4],['size':0,'fixed':true,'showInfobox':false]],\n'day 2 ':['point',[5.25,-1.4],['size':0,'fixed':true,'showInfobox':false]],\n\n'LITRES OF FUEL':['point',[-1.9,0.9],['size':0,'fixed':true,'showInfobox':false,'label':['rotate':90]]],\n\n'':['point',[1.2,5.5],['size':2,'fixed':true,'showInfobox':false]],\n' ':['point',[2.2,3.65],['size':2,'fixed':true,'showInfobox':false]],\n' ':['point',[3.7,3.3],['size':2,'fixed':true,'showInfobox':false]],\n' ':['point',[4.7,3.3],['size':2,'fixed':true,'showInfobox':false]],\n' ':['point',[4.7,4.3],['size':2,'fixed':true,'showInfobox':false]],\n' ':['point',[5.8,3.0],['size':2,'fixed':true,'showInfobox':false]],\n' ':['point',[6.3,2.8],['size':0,'fixed':true,'showInfobox':false]],\n'l1':['line',[[1.2,5.5],[2.2,3.65]],['straightFirst':false, 'straightLast':false]],\n'l2':['line',[[3.7,3.3],[2.2,3.65]],['straightFirst':false, 'straightLast':false]],\n'l3':['line',[[3.7,3.3],[4.7,3.3]],['straightFirst':false, 'straightLast':false]],\n'l4':['line',[[4.7,4.3],[4.7,3.3]],['straightFirst':false, 'straightLast':false]],\n'l5':['line',[[4.7,4.3],[5.8,3.0]],['straightFirst':false, 'straightLast':false]],\n'l6':['line',[[6.3,2.95],[5.8,3.0]],['straightFirst':false, 'straightLast':false]],\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t7": {"name": "t7", "group": "Ungrouped variables", "definition": "jsxgraph( 250,250,[-6,6,6,-6],[\n'c':['chart', [43,14,8,35], \n[rotate:50,chartStyle:'pie',\ncolors:['#101010','#a0a0a0','#d0d0d0','#505050'],\n strokeColor:'#',\n]],\n\n'Apr':['point',[-3,2-0.75],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n'Jan':['point',[0.7,2-0.75],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n'Mar':['point',[-3,-1.5-0.5],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n'Feb':['point',[0.7,-1.5-0.5],[size:0,'fixed':true,'showInfobox':false,'label':[strokeColor:'#ffffff',fontSize:16]]],\n\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t8": {"name": "t8", "group": "Ungrouped variables", "definition": "jsxgraph( 640,345,[-1,8,9,-2],[\n's1':['segment', [[0, 0], [0, 6]],['fixed':true,'color':'#000000']],\n't1':['ticks', ['s1'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: true,\n minorTicks: 0,\n ticksDistance:1,\n scale: 0.65,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[0,1],\n majorHeight:980,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n's2':['segment', [[0, 0], [7.75, 0]],['fixed':true,'color':'#000000']],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: true,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,0],\n majorHeight:000,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n'monday':['point',[0.5,-0.7],[size:0,'fixed':true,'showInfobox':false]],\n'tuesday':['point',[1.52,-0.7],[size:0,'fixed':true,'showInfobox':false]],\n'wednesday':['point',[2.38,-0.7],[size:0,'fixed':true,'showInfobox':false]],\n'thursday':['point',[3.5,-0.7],[size:0,'fixed':true,'showInfobox':false]],\n'friday':['point',[4.625,-0.7],[size:0,'fixed':true,'showInfobox':false]],\n'saturday':['point',[5.475,-0.7],[size:0,'fixed':true,'showInfobox':false]],\n'sunday':['point',[6.57,-0.7],[size:0,'fixed':true,'showInfobox':false]],\n\n'Dozens of Hot Dogs Sold per Day':['point',[1.6,7],[size:0,'fixed':true,'showInfobox':false,'label':['fontSize':17]]],\n'Dozens of Hot Dogs Sold':['point',[-0.75,0.45],[size:0,'fixed':true,'showInfobox':false,'label':[rotate:90]]],\n'c':[\n'chart', [\n3.25,1.3,5.2,0.65,1.99,2.6,3.93\n],\n[chartStyle:'bar','fixed':true, \ncolors:[\n\"#2020d0\",\n\"#2020d0\",\n\"#2020d0\",\n\"#2020d0\",\n\"#2020d0\",\n\"#2020d0\",\n],\nsize:14,width:-0.9]],\n],\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}, "t9": {"name": "t9", "group": "Ungrouped variables", "definition": "jsxgraph( 500,325,[-2.25,5,11,-1],[\n's1':['segment', [[0, 0], [0, 3.5]],['fixed':true,'color':'#000000']],\n'A':['point',[0.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n'B':['point',[1.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n'C':['point',[2.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n\n's2':['segment', [[0, 0], [3.75, 0]],['fixed':true,'color':'#000000']],\n\n's1':['segment', [[0, 0], [0, 3.5]],['fixed':true,'color':'#000000']],\n\n'A':['point',[0.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n'B':['point',[1.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n'C':['point',[2.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n\n's2':['segment', [[0, 0], [3.75, 0]],['fixed':true,'color':'#000000']],\n't2':['ticks', ['s2'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\nticksDistance: 1,\nscale:1.01,\n strokeWidth:0.5,\nmajorTickEndings:[1,1],\n majorHeight:0,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [2, -10]\n]\n]\n],\n'c':[\n'chart', [\n3,1.5,2,0,0,0,3,2.8,2.9\n],\n[chartStyle:'bar','fixed':true,\ncolors:[\n\"#a050a0\",\"#a050a0\",\"#a050a0\",\n\"#a050a0\",\"#a050a0\",\"#a050a0\",\n\"#a050a0\",\"#a050a0\",\"#a050a0\",\n],\nsize:1,width:0.5]],\n \n \n\n's3':['segment', [[6, 0], [6, 3.5]],['fixed':true,'color':'#000000']],\n't3':['ticks', ['s3'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: true,\n minorTicks: 0,\nticksDistance: 25,\nscale:0.03,\n includeBoundaries: true,\n strokeWidth:0.5,\nmajorTickEndings:[1,1],\n majorHeight:7,\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [-5, 0]\n]\n]\n],\n'A ':['point',[6.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n'B ':['point',[7.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n'C ':['point',[8.6,-0.4],[size:0,'fixed':true,'showInfobox':false]],\n\n's4':['segment', [[6, 0], [9.75, 0]],['fixed':true,'color':'#000000']],\n't4':['ticks', ['s4'],[\n anchor: 'top',\n drawZero: false,\n drawLabels: false,\n minorTicks: 0,\n includeBoundaries: true,\nticksDistance: 1,\nscale:1.01,\n strokeWidth:0.5,\nmajorTickEndings:[1,1],\n majorHeight:0,\n\n label: [\n anchorX: 'right',\n anchorY: 'middle',\n offset: [2, -10]\n]\n]\n],\n \n'(a)':['point',[-1.5,4],[size:0,'fixed':true,'showInfobox':false,'label':[fontSize:17]]],\n'(b)':['point',[4,4],[size:0,'fixed':true,'showInfobox':false,'label':[fontSize:17]]],\n \n],\n \n \n\n[\"axis\":false]\n)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What was the first month were Toronto's average temperature was below 0?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Oct", "Nov", "Feb", "Apr"], "matrix": [0, "1", 0, 0], "distractors": ["", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What month was hottest in Vancouver?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Sept", "Jan", "Mar", "Apr"], "matrix": ["1", 0, 0, "0"], "distractors": ["", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What was Toronto's coldest month?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Sept", "Oct", "Apr", "Jan"], "matrix": [0, 0, 0, "1"], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "E statistics central tendancy", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Each day, Jack records the hours he spent going for walks. Here are the results after 7 days.

\n

$3.5, 2, 1.5, 1.5, 3, 1.5, 2$

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"mean": {"name": "mean", "group": "Ungrouped variables", "definition": "(3.5+2+1.5+1.5+2+1.5+2)/7", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["mean"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the mean of this data set?

", "minValue": "{mean}", "maxValue": "{mean}", "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": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the mode of this data set?

", "minValue": "1.5", "maxValue": "1.5", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question"}, {"name": "E statistics multiple choice", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

The average rent for a survey of 1500 victoria residents was 2150$ a month.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which option below describes the average rent in the survey?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Parameter ", "Statistic", "Population", "Sample"], "matrix": [0, "1", 0, 0], "distractors": ["", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which option below describes the residents of victoria in the survey?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Parameter ", "Statistic", "Population", "Sample"], "matrix": [0, 0, "1", 0], "distractors": ["", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which option below describes the 1500 people who answered the survey?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": false, "choices": ["Parameter ", "Statistic", "Population", "Sample"], "matrix": [0, 0, 0, "1"], "distractors": ["", "", "", ""]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}, {"name": "Slope", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": [""], "variable_overrides": [[]], "questions": [{"name": "Slope of a Hill", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}, {"name": "Payton Murdoch", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/15266/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Solve the following slope related question.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"meters": {"name": "meters", "group": "Ungrouped variables", "definition": "rise*random(100..160)", "description": "", "templateType": "anything", "can_override": false}, "rise": {"name": "rise", "group": "Ungrouped variables", "definition": "random(3..9)", "description": "", "templateType": "anything", "can_override": false}, "run": {"name": "run", "group": "Ungrouped variables", "definition": "random(150..300)", "description": "", "templateType": "anything", "can_override": false}, "Answer": {"name": "Answer", "group": "Ungrouped variables", "definition": "(meters/rise)*run", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["meters", "rise", "run", "Answer"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A hill has a slope of $\\frac{\\var{rise}}{\\var{run}}$ and rises a distance of {meters} m. Given the available information, determine the hill's horizontal distance.

\n

Answer: [[0]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "Distance", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "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"}]}], "allowPrinting": false, "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": false, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "never"}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": false, "showactualmarkwhen": "never", "showtotalmarkwhen": "never", "showanswerstatewhen": "never", "showpartfeedbackmessageswhen": "never", "showexpectedanswerswhen": "never", "showadvicewhen": "never", "allowrevealanswer": false, "intro": "", "end_message": "", "results_options": {"printquestions": false, "printadvice": true}, "feedbackmessages": [], "reviewshowexpectedanswer": false, "showanswerstate": false, "reviewshowfeedback": false, "showactualmark": false, "showtotalmark": false, "reviewshowscore": false, "reviewshowadvice": false}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "K W", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3194/"}, {"name": "Payton Murdoch", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/15266/"}], "extensions": ["eukleides", "geogebra", "graph-theory", "jsxgraph"], "custom_part_types": [], "resources": [["question-resources/undefined_YwBJcjH", "/srv/numbas/media/question-resources/undefined_YwBJcjH"], ["question-resources/undefined_YwBJcjH", "/srv/numbas/media/question-resources/undefined_YwBJcjH"]]}