// Numbas version: exam_results_page_options {"name": "NumericalReasoning12", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"delay1C": {"definition": "19", "description": "", "group": "Ungrouped variables", "name": "delay1C", "templateType": "anything"}, "yo15": {"definition": "41", "description": "", "group": "Ungrouped variables", "name": "yo15", "templateType": "anything"}, "yo7": {"definition": "42", "description": "", "group": "Ungrouped variables", "name": "yo7", "templateType": "anything"}, "cc": {"definition": "random(0.7..1.3#0.01 except 1 except aa except bb)", "description": "", "group": "Ungrouped variables", "name": "cc", "templateType": "anything"}, "delay1B": {"definition": "28", "description": "", "group": "Ungrouped variables", "name": "delay1B", "templateType": "anything"}, "yo51": {"definition": "eee*yo5", "description": "", "group": "Ungrouped variables", "name": "yo51", "templateType": "anything"}, "delay2C": {"definition": "23", "description": "", "group": "Ungrouped variables", "name": "delay2C", "templateType": "anything"}, "delay4C": {"definition": "32", "description": "", "group": "Ungrouped variables", "name": "delay4C", "templateType": "anything"}, "delay2B": {"definition": "34", "description": "", "group": "Ungrouped variables", "name": "delay2B", "templateType": "anything"}, "yo16": {"definition": "42", "description": "", "group": "Ungrouped variables", "name": "yo16", "templateType": "anything"}, "xn": {"definition": "map((x-hsh)/hsc,x,xo)", "description": "

new transformed x values

", "group": "Ungrouped variables", "name": "xn", "templateType": "anything"}, "yo20": {"definition": "46", "description": "", "group": "Ungrouped variables", "name": "yo20", "templateType": "anything"}, "yo14": {"definition": "40", "description": "", "group": "Ungrouped variables", "name": "yo14", "templateType": "anything"}, "d": {"definition": "random(1.1..1.3#0.01 except a except b except c)", "description": "", "group": "Ungrouped variables", "name": "d", "templateType": "anything"}, "yo6": {"definition": "34", "description": "", "group": "Ungrouped variables", "name": "yo6", "templateType": "anything"}, "a": {"definition": "random(1.1..1.3#0.01)", "description": "", "group": "Ungrouped variables", "name": "a", "templateType": "anything"}, "f": {"definition": "random(1.1..1.3#0.01 except a except b except c except d except e)", "description": "", "group": "Ungrouped variables", "name": "f", "templateType": "anything"}, "answervector": {"definition": "vector((yo5-yo0)/yo0*100, (yo6-yo1)/yo1*100,(yo7-yo2)/yo2*100,(yo8-yo3)/yo3*100, (yo9-yo4)/yo4*100)", "description": "", "group": "Ungrouped variables", "name": "answervector", "templateType": "anything"}, "vsh": {"definition": "if(selector='vsh',random(-3..3#0.5 except 0),0)\n", "description": "

vertical shift

", "group": "Ungrouped variables", "name": "vsh", "templateType": "anything"}, "maxx": {"definition": "max(map(abs(a),a,xn)+5)+1", "description": "", "group": "Ungrouped variables", "name": "maxx", "templateType": "anything"}, "yo9": {"definition": "21", "description": "", "group": "Ungrouped variables", "name": "yo9", "templateType": "anything"}, "increase": {"definition": "random(10..40#5)", "description": "", "group": "Ungrouped variables", "name": "increase", "templateType": "anything"}, "hsh": {"definition": "if(selector='hsh',random(-3..3 except 0),0)", "description": "

horizontal shift

", "group": "Ungrouped variables", "name": "hsh", "templateType": "anything"}, "delay3B": {"definition": "36", "description": "", "group": "Ungrouped variables", "name": "delay3B", "templateType": "anything"}, "hsc": {"definition": "if(selector='hsc',random(-2,-1,-0.5,0.5,2),1)", "description": "", "group": "Ungrouped variables", "name": "hsc", "templateType": "anything"}, "yo18": {"definition": "44", "description": "", "group": "Ungrouped variables", "name": "yo18", "templateType": "anything"}, "yo4": {"definition": "28", "description": "", "group": "Ungrouped variables", "name": "yo4", "templateType": "anything"}, "delay4A": {"definition": "33", "description": "", "group": "Ungrouped variables", "name": "delay4A", "templateType": "anything"}, "delay4B": {"definition": "39", "description": "", "group": "Ungrouped variables", "name": "delay4B", "templateType": "anything"}, "yo": {"definition": "repeat(random(-5..5),5)", "description": "

the (random) original y values which relate to the x values

", "group": "Ungrouped variables", "name": "yo", "templateType": "anything"}, "yo17": {"definition": "43", "description": "", "group": "Ungrouped variables", "name": "yo17", "templateType": "anything"}, "fakeanswer4": {"definition": "answer-1.5", "description": "", "group": "Ungrouped variables", "name": "fakeanswer4", "templateType": "anything"}, "answer": {"definition": "((yo3+yo7+yo11-yo2-yo6-yo10)+(yo3+yo7+yo11))/3", "description": "", "group": "Ungrouped variables", "name": "answer", "templateType": "anything"}, "yearvector": {"definition": "vector(2007,2008,2009,2010,2011,2012,2013)", "description": "", "group": "Ungrouped variables", "name": "yearvector", "templateType": "anything"}, "delay2A": {"definition": "24", "description": "", "group": "Ungrouped variables", "name": "delay2A", "templateType": "anything"}, "delay3C": {"definition": "25", "description": "", "group": "Ungrouped variables", "name": "delay3C", "templateType": "anything"}, "yo2": {"definition": "26", "description": "", "group": "Ungrouped variables", "name": "yo2", "templateType": "anything"}, "fakeanswer3": {"definition": "answer+3", "description": "", "group": "Ungrouped variables", "name": "fakeanswer3", "templateType": "anything"}, "bb": {"definition": "random(0.7..1.3#0.01 except 1 except aa)", "description": "", "group": "Ungrouped variables", "name": "bb", "templateType": "anything"}, "yo3": {"definition": "29", "description": "", "group": "Ungrouped variables", "name": "yo3", "templateType": "anything"}, "yo5": {"definition": "32", "description": "", "group": "Ungrouped variables", "name": "yo5", "templateType": "anything"}, "yo8": {"definition": "7", "description": "", "group": "Ungrouped variables", "name": "yo8", "templateType": "anything"}, "selector": {"definition": "'vsc'", "description": "", "group": "Ungrouped variables", "name": "selector", "templateType": "anything"}, "yn": {"definition": "map(vsc*y+vsh,y,yo)", "description": "

new y values after the transformation

", "group": "Ungrouped variables", "name": "yn", "templateType": "anything"}, "yo11": {"definition": "38", "description": "", "group": "Ungrouped variables", "name": "yo11", "templateType": "anything"}, "yo10": {"definition": "26", "description": "", "group": "Ungrouped variables", "name": "yo10", "templateType": "anything"}, "year": {"definition": "yearvector[ii]", "description": "", "group": "Ungrouped variables", "name": "year", "templateType": "anything"}, "yo19": {"definition": "45", "description": "", "group": "Ungrouped variables", "name": "yo19", "templateType": "anything"}, "students": {"definition": "random(120..320#1)", "description": "", "group": "Ungrouped variables", "name": "students", "templateType": "anything"}, "dd": {"definition": "random(0.7..1.3#0.01 except 1 except aa except bb except cc)", "description": "", "group": "Ungrouped variables", "name": "dd", "templateType": "anything"}, "ii": {"definition": "random(3..6#1)", "description": "", "group": "Ungrouped variables", "name": "ii", "templateType": "anything"}, "delay1A": {"definition": "20", "description": "", "group": "Ungrouped variables", "name": "delay1A", "templateType": "anything"}, "fakeanswer1": {"definition": "answer-3", "description": "", "group": "Ungrouped variables", "name": "fakeanswer1", "templateType": "anything"}, "yo41": {"definition": "d*yo4", "description": "", "group": "Ungrouped variables", "name": "yo41", "templateType": "anything"}, "eee": {"definition": "random(1.1..1.3#0.01 except a except b except c except d)", "description": "", "group": "Ungrouped variables", "name": "eee", "templateType": "anything"}, "yo12": {"definition": "30", "description": "", "group": "Ungrouped variables", "name": "yo12", "templateType": "anything"}, "percent": {"definition": "random(5..15#0.1 except 5 except 6 except 7 except 8 except 9 except 10 except 11 except 12 except 13 except 14 except 15)", "description": "", "group": "Ungrouped variables", "name": "percent", "templateType": "anything"}, "delay3A": {"definition": "27", "description": "", "group": "Ungrouped variables", "name": "delay3A", "templateType": "anything"}, "vsc": {"definition": "if(selector='vsc',random(-2,-1,-0.5,0.5,2),1)", "description": "", "group": "Ungrouped variables", "name": "vsc", "templateType": "anything"}, "c": {"definition": "random(1.1..1.3#0.01 except a except b)", "description": "", "group": "Ungrouped variables", "name": "c", "templateType": "anything"}, "b": {"definition": "random(1.1..1.3#0.01 except a)", "description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything"}, "yo0": {"definition": "20", "description": "", "group": "Ungrouped variables", "name": "yo0", "templateType": "anything"}, "aa": {"definition": "random(0.7..1.3#0.01 except 1)", "description": "", "group": "Ungrouped variables", "name": "aa", "templateType": "anything"}, "yo1": {"definition": "21", "description": "", "group": "Ungrouped variables", "name": "yo1", "templateType": "anything"}, "yo13": {"definition": "34", "description": "", "group": "Ungrouped variables", "name": "yo13", "templateType": "anything"}, "xo": {"definition": "list(-2..2)", "description": "

original x values

", "group": "Ungrouped variables", "name": "xo", "templateType": "anything"}, "fakeanswer2": {"definition": "answer-6", "description": "", "group": "Ungrouped variables", "name": "fakeanswer2", "templateType": "anything"}}, "metadata": {"description": "

Widget Sales

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "rulesets": {"std": ["all", "fractionNumbers"]}, "variable_groups": [], "preamble": {"js": "function dragpoint_board() {\n var scope = question.scope;\n\n JXG.Options.text.display = 'internal';\n \n var yo0 = scope.variables.yo0.value;\n var yo1 = scope.variables.yo1.value;\n var yo2 = scope.variables.yo2.value;\n var yo3 = scope.variables.yo3.value;\n var yo4 = scope.variables.yo4.value;\n var yo5 = scope.variables.yo5.value;\n var yo6 = scope.variables.yo6.value;\n var yo7 = scope.variables.yo7.value; \n var yo8 = scope.variables.yo8.value;\n var yo9 = scope.variables.yo9.value; \n var yo10 = scope.variables.yo10.value;\n var yo11 = scope.variables.yo11.value;\n var yo12 = scope.variables.yo12.value;\n var yo13 = scope.variables.yo13.value;\n var yo14 = scope.variables.yo14.value;\n var yo15 = scope.variables.yo15.value;\n var yo16 = scope.variables.yo16.value;\n var yo17 = scope.variables.yo17.value;\n var yo18 = scope.variables.yo18.value;\n var yo19 = scope.variables.yo19.value;\n var yo20 = scope.variables.yo20.value;\n \n var div = Numbas.extensions.jsxgraph.makeBoard('550px','550px',{boundingBox:[-0.8,52,16,-4], axis:false, grid:true});\n \n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \nboard.suspendUpdate(); \n\n \n var dataArr = [yo0,yo4,yo8,0,yo1,yo5,yo9,0,yo2,yo6,yo10,0,yo3,yo7,yo11]; \n \n var xaxis = board.create('axis', [[0, 0], [12, 0]], {withLabel: true, name: \"Year\", label: {offset: [250,-30]}});\n \n xaxis.removeAllTicks(); \n \n board.create('axis', [[0, 0], [0, 10]], {hideTicks:true, withLabel: false, name: \"\", label: {offset: [-110,300]}});\n \n var pop0 = board.create('point', [2,0],{name:'2015',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop1 = board.create('point',[6,0],{name:'2016',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop2 = board.create('point',[10,0],{name:'2017',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop3 = board.create('point',[14,0],{name:'2018',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n //var pop4 = board.create('point',[13.5,0],{name:'Karchen',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n\n var leg1 = board.create('point',[12,45],{name:'Emerald Airport',fixed:true,size:6,color:'#DA2228', face:'square', label:{offset:[9,0]}});\n var leg2 = board.create('point',[12,47],{name:'Hill Valley Airport',fixed:true,size:6,color:'#6F1B75', face:'square', label:{offset:[9,0]}});\n var leg2 = board.create('point',[12,49],{name:'Sherma Airport',fixed:true,size:6,color:'green', face:'square', label:{offset:[9,0]}});\n\n// var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', fillOpacity:1, width:1,\n // colorArray:['#8E1B77','#8E1B77','Red','Red','blue','red','blue','red','red','blue', 'red','blue','red','red'], shadow:false});\n \n//var chart = board.createElement('chart', dataArr, \n // {chartStyle:'bar', width:1,fillOpacity:1, fillColor:'red', shadow:false}); \n \n \n var a = board.create('chart', [[1,2,3,4],[yo0,yo4,yo8,0]], {chartStyle:'bar',colors:['#DA2228','#6F1B75','green'],width:1,fillOpacity:1});\n var b = board.create('chart', [[5,6,7,8],[yo1,yo5,yo9,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','green'],fillOpacity:1});\n var c = board.create('chart', [[9,10,11,12],[yo2,yo6,yo10,0]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','green'],fillOpacity:1});\n var d = board.create('chart', [[13,14,15],[yo3,yo7,yo11]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75','green'],fillOpacity:1});\n //var e = board.create('chart', [[13,14],[yo4,yo9]], {chartStyle:'bar',width:1,colors:['#DA2228','#6F1B75'],fillOpacity:1});\n \n board.unsuspendUpdate();\n \n var txt1 = board.create('text',[-0.3,30, 'Delay (minutes)'], {fontColor:'black', fontSize:14, rotate:90});\n \n // var txt = board.create('text',[0.5,75, 'Investment (m)'], {fontSize:14, rotate:90});\n \n // var txt1 = board.create('text',[8,76, 'red bars represent 2010'], {fontColor:'red', fontSize:14, rotate:90});\n \n // var txt2 = board.create('text',[8,73, 'blue bars represents 2011'], {fontSize:14, rotate:90});\n\n // var myColors = new Array('red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue', 'white','red', 'blue');\n \n \n \n //board.unsuspendUpdate();\n\n // Rotate text around the lower left corner (-2,-1) by 30 degrees.\n // var tRot = board.create('transform', [90.0*Math.PI/180.0, -1,40], {type:'rotate'}); \n // tRot.bindTo(txt);\n // board.update();\n\n \n//var chart2 = board.createElement('chart', dataArr, {chartStyle:'line,point'});\n//chart2[0].setProperty('strokeColor:black','strokeWidth:2','shadow:true');\n//for(var i=0; i<11;i++) {\n // chart2[1][i].setProperty({strokeColor:'black',fillColor:'white',face:'[]', size:4, strokeWidth:2});\n//}\n//board.unsuspendUpdate(); \n \n //board.unsuspendUpdate();\n\n}\n\nquestion.signals.on('HTMLAttached',function() {\n dragpoint_board();\n});", "css": "table#values th {\n background: none;\n text-align: center;\n}"}, "name": "NumericalReasoning12", "tags": [], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "statement": "", "ungrouped_variables": ["a", "aa", "answer", "answervector", "b", "bb", "c", "cc", "d", "dd", "delay1A", "delay1B", "delay1C", "delay2A", "delay2B", "delay2C", "delay3A", "delay3B", "delay3C", "delay4A", "delay4B", "delay4C", "eee", "f", "fakeanswer1", "fakeanswer2", "fakeanswer3", "fakeanswer4", "hsc", "hsh", "ii", "increase", "maxx", "percent", "selector", "students", "vsc", "vsh", "xn", "xo", "year", "yearvector", "yn", "yo", "yo0", "yo1", "yo2", "yo3", "yo4", "yo41", "yo5", "yo51", "yo6", "yo7", "yo8", "yo9", "yo10", "yo11", "yo12", "yo13", "yo14", "yo15", "yo16", "yo17", "yo18", "yo19", "yo20"], "parts": [{"shuffleChoices": true, "showCorrectAnswer": false, "showFeedbackIcon": false, "customMarkingAlgorithm": "", "displayColumns": 0, "type": "1_n_2", "extendBaseMarkingAlgorithm": true, "scripts": {}, "minMarks": 0, "distractors": ["", "", ""], "maxMarks": 0, "prompt": "
Average Aircraft Arrival Delay
\n

In the 4 years shown, which airport had the lowest overall delay time average.

", "choices": ["Sherma Airport", "Hill Valley Airport", "Emerald Airport"], "variableReplacements": [], "marks": 0, "matrix": ["1", 0, 0], "unitTests": [], "displayType": "radiogroup", "variableReplacementStrategy": "originalfirst"}], "advice": "", "extensions": ["jsxgraph"], "type": "question", "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}, {"name": "Raymond Corrigan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2229/"}]}]}], "contributors": [{"name": "Gareth Woods", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/978/"}, {"name": "Raymond Corrigan", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2229/"}]}