// Numbas version: exam_results_page_options {"name": "Data 3", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variablesTest": {"maxRuns": "1000", "condition": ""}, "statement": "", "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 \n var maxx = scope.variables.maxx.value;\n var maxy = scope.variables.maxy.value;\n \n var div = Numbas.extensions.jsxgraph.makeBoard('500px','500px',{boundingBox:[-0.6,105,8,-4], axis:false, grid:false});\n \n \n $(question.display.html).find('#dragpoint').append(div);\n \n var board = div.board;\n \n var xaxis = board.create('axis', [[0, 0], [7, 0]], {withLabel: true, name: \"Year\", label: {offset: [250,-28]}});\n \n xaxis.removeAllTicks();\n \n board.create('axis', [[0, 0], [0, 20]], {hideTicks:true, withLabel: false, name: \"Percentage\", label: {offset: [-90,300]}});\n \n //create stationary points\n \n var op0 = board.create('point',[1,yo0],{name:'',fixed:true,size:3,color:'blue',face:'diamond'});\n var op1 = board.create('point',[2,yo1],{name:'',fixed:true,size:3,color:'blue',face:'diamond'});\n var op2 = board.create('point',[3,yo2],{name:'',fixed:true,size:3,color:'blue',face:'diamond'});\n var op3 = board.create('point',[4,yo3],{name:'',fixed:true,size:3,color:'blue',face:'diamond'});\n var op4 = board.create('point',[5,yo4],{name:'',fixed:true,size:3,color:'blue',face:'diamond'});\n var op5 = board.create('point',[6,yo5],{name:'',fixed:true,size:3,color:'blue',face:'diamond'});\n var op6 = board.create('point',[7,yo6],{name:'',fixed:true,size:3,color:'blue',face:'diamond'});\n \n \n var pop0 = board.create('point', [1,0],{name:'2007',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop1 = board.create('point',[2,0],{name:'2008',fixed:true,size:0,color:'black',face:'diamond', label:{offset:[-20,-8]}});\n var pop2 = board.create('point',[3,0],{name:'2009',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop3 = board.create('point',[4,0],{name:'2010',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop4 = board.create('point',[5,0],{name:'2011',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-10,-8]}});\n var pop5 = board.create('point',[6,0],{name:'2012',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n var pop6 = board.create('point',[7,0],{name:'2013',fixed:true,size:0,color:'black', face:'diamond', label:{offset:[-15,-8]}});\n \n // create the parabola\n var parabool1 = board.create('line',[[x1=1,y1=yo0], [x2=2,y2=yo1]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n var parabool2 = board.create('line',[[x1=2,y1=yo1], [x2=3,y2=yo2]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n var parabool3 = board.create('line',[[x1=3,y1=yo2], [x2=4,y2=yo3]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n var parabool4 = board.create('line',[[x1=4,y1=yo3], [x2=5,y2=yo4]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n var parabool5 = board.create('line',[[x1=5,y1=yo4], [x2=6,y2=yo5]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n var parabool5 = board.create('line',[[x1=6,y1=yo5], [x2=7,y2=yo6]],{straightFirst:false, straightLast:false,strokeWidth:1,strokeColor:'blue'});\n \n var txt = board.create('text',[-0.35,42, 'Percentage'], {fontSize:14, rotate:90});\n \n}\n\nquestion.signals.on('HTMLAttached',function() {\n dragpoint_board();\n});", "css": "table#values th {\n background: none;\n text-align: center;\n}"}, "tags": [], "advice": "", "ungrouped_variables": ["selector", "vsh", "hsh", "vsc", "hsc", "yo", "yn", "xo", "xn", "yo0", "yo1", "yo2", "yo3", "maxx", "maxy", "yo4", "yo01", "yo11", "yo21", "yo31", "yo41", "yo5", "yo51", "maxvector", "a", "b", "c", "d", "eee", "f", "answer", "fakeanswer1", "fakeanswer2", "fakeanswer3", "fakeanswer4", "aa", "bb", "cc", "dd", "percent", "students", "yo6", "yearvector", "ii", "year", "passvector", "increase", "secondattemptvector"], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Widget Sales

"}, "variable_groups": [], "functions": {}, "parts": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "type": "gapfill", "prompt": "
Student Pass Rate for Module AM1234
\n

\n

{increase} of the {students} who took the exam in 2011 passed on their first attempt. Assuming that the exam has two attempts only, what percent of all the students who took the exam that year passed on the second attempt?

\n

Give your solution correct to two decimal places.

\n

[[0]] $\\%$

", "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "scripts": {}, "marks": 0, "gaps": [{"showCorrectAnswer": true, "showFeedbackIcon": true, "vsetrange": [0, 1], "scripts": {}, "variableReplacements": [], "answer": "{answer}", "checkingtype": "absdiff", "checkingaccuracy": 0.001, "variableReplacementStrategy": "originalfirst", "type": "jme", "expectedvariablenames": [], "checkvariablenames": false, "marks": 1, "vsetrangepoints": 5, "showpreview": true}]}], "name": "Data 3", "rulesets": {"std": ["all", "fractionNumbers"]}, "extensions": ["jsxgraph"], "variables": {"maxx": {"name": "maxx", "group": "Ungrouped variables", "definition": "max(map(abs(a),a,xn)+5)+1", "templateType": "anything", "description": ""}, "xn": {"name": "xn", "group": "Ungrouped variables", "definition": "map((x-hsh)/hsc,x,xo)", "templateType": "anything", "description": "

new transformed x values

"}, "yo01": {"name": "yo01", "group": "Ungrouped variables", "definition": "f*yo0", "templateType": "anything", "description": ""}, "aa": {"name": "aa", "group": "Ungrouped variables", "definition": "random(0.7..1.3#0.1 except 1)", "templateType": "anything", "description": ""}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b except c except d except e)", "templateType": "anything", "description": ""}, "xo": {"name": "xo", "group": "Ungrouped variables", "definition": "list(-2..2)", "templateType": "anything", "description": "

original x values

"}, "yo4": {"name": "yo4", "group": "Ungrouped variables", "definition": "random(60..80#10 except yo1 except yo0 except yo2 except yo3)", "templateType": "anything", "description": ""}, "percent": {"name": "percent", "group": "Ungrouped variables", "definition": "random(5..20#0.1 except 5 except 6 except 7 except 8 except 9 except 10 except 11 except 12 except 13 except 14 except 15 except 16 except 17 except 18 except 19 except 20)", "templateType": "anything", "description": ""}, "maxy": {"name": "maxy", "group": "Ungrouped variables", "definition": "max(list(maxvector)) + 1", "templateType": "anything", "description": ""}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b except c)", "templateType": "anything", "description": ""}, "yo31": {"name": "yo31", "group": "Ungrouped variables", "definition": "c*yo3", "templateType": "anything", "description": ""}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "precround(yo4-(({increase}*100)/{students}),2)\n ", "templateType": "anything", "description": ""}, "passvector": {"name": "passvector", "group": "Ungrouped variables", "definition": "vector(yo0*students/100, yo1*students/100,yo2*students/100,yo3*students/100, yo4*students/100, yo5*students/100, yo6*students/100)", "templateType": "anything", "description": ""}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a)", "templateType": "anything", "description": ""}, "students": {"name": "students", "group": "Ungrouped variables", "definition": "random(200..500#10)", "templateType": "anything", "description": ""}, "yo21": {"name": "yo21", "group": "Ungrouped variables", "definition": "b*yo2", "templateType": "anything", "description": ""}, "year": {"name": "year", "group": "Ungrouped variables", "definition": "yearvector[ii]", "templateType": "anything", "description": ""}, "selector": {"name": "selector", "group": "Ungrouped variables", "definition": "'vsc'", "templateType": "anything", "description": ""}, "dd": {"name": "dd", "group": "Ungrouped variables", "definition": "random(0.2..0.4#0.1 except 1 except aa except bb except cc)", "templateType": "anything", "description": ""}, "ii": {"name": "ii", "group": "Ungrouped variables", "definition": "random(3..6#1)", "templateType": "anything", "description": ""}, "yo51": {"name": "yo51", "group": "Ungrouped variables", "definition": "eee*yo5", "templateType": "anything", "description": ""}, "yo1": {"name": "yo1", "group": "Ungrouped variables", "definition": "random(70..90#1 except yo0)", "templateType": "anything", "description": ""}, "fakeanswer4": {"name": "fakeanswer4", "group": "Ungrouped variables", "definition": "answer-dd*10", "templateType": "anything", "description": ""}, "eee": {"name": "eee", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b except c except d)", "templateType": "anything", "description": ""}, "fakeanswer1": {"name": "fakeanswer1", "group": "Ungrouped variables", "definition": "answer+aa*10", "templateType": "anything", "description": ""}, "vsh": {"name": "vsh", "group": "Ungrouped variables", "definition": "if(selector='vsh',random(-3..3#0.5 except 0),0)\n", "templateType": "anything", "description": "

vertical shift

"}, "hsh": {"name": "hsh", "group": "Ungrouped variables", "definition": "if(selector='hsh',random(-3..3 except 0),0)", "templateType": "anything", "description": "

horizontal shift

"}, "hsc": {"name": "hsc", "group": "Ungrouped variables", "definition": "if(selector='hsc',random(-2,-1,-0.5,0.5,2),1)", "templateType": "anything", "description": ""}, "maxvector": {"name": "maxvector", "group": "Ungrouped variables", "definition": "vector(yo1, yo2,yo3, yo4, yo5, yo11, yo21,yo31, yo41, yo51)", "templateType": "anything", "description": ""}, "yo11": {"name": "yo11", "group": "Ungrouped variables", "definition": "a*yo1", "templateType": "anything", "description": ""}, "yearvector": {"name": "yearvector", "group": "Ungrouped variables", "definition": "vector(2007,2008,2009,2010,2011,2012,2013)", "templateType": "anything", "description": ""}, "yo3": {"name": "yo3", "group": "Ungrouped variables", "definition": "random(70..90#1 except yo1 except yo0 except yo2)", "templateType": "anything", "description": ""}, "fakeanswer2": {"name": "fakeanswer2", "group": "Ungrouped variables", "definition": "answer+bb*10", "templateType": "anything", "description": ""}, "bb": {"name": "bb", "group": "Ungrouped variables", "definition": "random(0.7..1.3#0.1 except 1 except aa)", "templateType": "anything", "description": ""}, "yo41": {"name": "yo41", "group": "Ungrouped variables", "definition": "d*yo4", "templateType": "anything", "description": ""}, "vsc": {"name": "vsc", "group": "Ungrouped variables", "definition": "if(selector='vsc',random(-2,-1,-0.5,0.5,2),1)", "templateType": "anything", "description": ""}, "yn": {"name": "yn", "group": "Ungrouped variables", "definition": "map(vsc*y+vsh,y,yo)", "templateType": "anything", "description": "

new y values after the transformation

"}, "secondattemptvector": {"name": "secondattemptvector", "group": "Ungrouped variables", "definition": "vector(students, students, students, students, students, students, students)-passvector\n ", "templateType": "anything", "description": ""}, "yo6": {"name": "yo6", "group": "Ungrouped variables", "definition": "random(70..90#5 except yo1 except yo0 except yo2 except yo3 except yo4 except yo5)", "templateType": "anything", "description": ""}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01)", "templateType": "anything", "description": ""}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "random(1.1..1.3#0.01 except a except b)", "templateType": "anything", "description": ""}, "cc": {"name": "cc", "group": "Ungrouped variables", "definition": "random(0.2..0.4#0.1 except 1 except aa except bb)", "templateType": "anything", "description": ""}, "yo0": {"name": "yo0", "group": "Ungrouped variables", "definition": "random(70..90#5)", "templateType": "anything", "description": ""}, "yo5": {"name": "yo5", "group": "Ungrouped variables", "definition": "random(70..90#1 except yo1 except yo0 except yo2 except yo3 except yo4)", "templateType": "anything", "description": ""}, "increase": {"name": "increase", "group": "Ungrouped variables", "definition": "random(80..120#1)", "templateType": "anything", "description": ""}, "yo2": {"name": "yo2", "group": "Ungrouped variables", "definition": "random(70..90#1except yo1 except yo0)", "templateType": "anything", "description": ""}, "fakeanswer3": {"name": "fakeanswer3", "group": "Ungrouped variables", "definition": "answer-cc*10", "templateType": "anything", "description": ""}, "yo": {"name": "yo", "group": "Ungrouped variables", "definition": "repeat(random(-5..5),5)", "templateType": "anything", "description": "

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

"}}, "type": "question", "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}]}], "contributors": [{"name": "Harry Flynn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/976/"}]}