// Numbas version: exam_results_page_options {"name": "Horizontal Bar Charts Question 3", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"eee": {"description": "", "name": "eee", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1.1..1.3#0.01 except a except b except c except d)"}, "cc": {"description": "", "name": "cc", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0.7..1.3#0.01 except 1 except aa except bb)"}, "yo10": {"description": "", "name": "yo10", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2 except yo9)"}, "aa": {"description": "", "name": "aa", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0.7..1.3#0.01 except 1)"}, "students": {"description": "", "name": "students", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(120..320#1)"}, "yn": {"description": "

new y values after the transformation

", "name": "yn", "group": "Ungrouped variables", "templateType": "anything", "definition": "map(vsc*y+vsh,y,yo)"}, "answervector": {"description": "", "name": "answervector", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector((yo5-yo0)/yo0*100, (yo6-yo1)/yo1*100,(yo7-yo2)/yo2*100,(yo8-yo3)/yo3*100, (yo9-yo4)/yo4*100)"}, "yo": {"description": "

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

", "name": "yo", "group": "Ungrouped variables", "templateType": "anything", "definition": "repeat(random(-5..5),5)"}, "d": {"description": "", "name": "d", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1.1..1.3#0.01 except a except b except c)"}, "yo9": {"description": "", "name": "yo9", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2)"}, "vsh": {"description": "

vertical shift

", "name": "vsh", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(selector='vsh',random(-3..3#0.5 except 0),0)\n"}, "vsc": {"description": "", "name": "vsc", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(selector='vsc',random(-2,-1,-0.5,0.5,2),1)"}, "xn": {"description": "

new transformed x values

", "name": "xn", "group": "Ungrouped variables", "templateType": "anything", "definition": "map((x-hsh)/hsc,x,xo)"}, "c": {"description": "", "name": "c", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1.1..1.3#0.01 except a except b)"}, "bb": {"description": "", "name": "bb", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0.7..1.3#0.01 except 1 except aa)"}, "answer": {"description": "", "name": "answer", "group": "Ungrouped variables", "templateType": "anything", "definition": "precround(yo4/(yo4+yo5+yo6+yo7) * 100,2)"}, "year": {"description": "", "name": "year", "group": "Ungrouped variables", "templateType": "anything", "definition": "yearvector[ii]"}, "yo11": {"description": "", "name": "yo11", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2 except yo9 except yo10)"}, "a": {"description": "", "name": "a", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1.1..1.3#0.01)"}, "yo2": {"description": "", "name": "yo2", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2 except yo1)"}, "yo5": {"description": "", "name": "yo5", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2)"}, "yo8": {"description": "", "name": "yo8", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..3#0.2 except yo0 except yo1)"}, "yo1": {"description": "", "name": "yo1", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2 except yo0)"}, "yo7": {"description": "", "name": "yo7", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2 except yo5 except yo6)"}, "maxx": {"description": "", "name": "maxx", "group": "Ungrouped variables", "templateType": "anything", "definition": "max(map(abs(a),a,xn)+5)+1"}, "yo4": {"description": "", "name": "yo4", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..3#0.2 except yo0)"}, "ii": {"description": "", "name": "ii", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3..6#1)"}, "yo3": {"description": "", "name": "yo3", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2 except yo1 except yo2)"}, "yo6": {"description": "", "name": "yo6", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(3.2..5#0.2 except yo5)"}, "fakeanswer1": {"description": "", "name": "fakeanswer1", "group": "Ungrouped variables", "templateType": "anything", "definition": "precround(aa*answer,2)"}, "hsh": {"description": "

horizontal shift

", "name": "hsh", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(selector='hsh',random(-3..3 except 0),0)"}, "fakeanswer4": {"description": "", "name": "fakeanswer4", "group": "Ungrouped variables", "templateType": "anything", "definition": "precround(dd*answer,2)"}, "percent": {"description": "", "name": "percent", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..20#0.1 except 2 except 3 except 4 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)"}, "yo0": {"description": "", "name": "yo0", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(2..3#0.2)"}, "dd": {"description": "", "name": "dd", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(0.7..1.3#0.01 except 1 except aa except bb except cc)"}, "b": {"description": "", "name": "b", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1.1..1.3#0.01 except a)"}, "xo": {"description": "

original x values

", "name": "xo", "group": "Ungrouped variables", "templateType": "anything", "definition": "list(-2..2)"}, "yearvector": {"description": "", "name": "yearvector", "group": "Ungrouped variables", "templateType": "anything", "definition": "vector(2007,2008,2009,2010,2011,2012,2013)"}, "fakeanswer2": {"description": "", "name": "fakeanswer2", "group": "Ungrouped variables", "templateType": "anything", "definition": "precround(bb*answer,2)"}, "f": {"description": "", "name": "f", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1.1..1.3#0.01 except a except b except c except d except e)"}, "fakeanswer3": {"description": "", "name": "fakeanswer3", "group": "Ungrouped variables", "templateType": "anything", "definition": "precround(cc*answer,2)"}, "increase": {"description": "", "name": "increase", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(10..40#5)"}, "selector": {"description": "", "name": "selector", "group": "Ungrouped variables", "templateType": "anything", "definition": "'vsc'"}, "hsc": {"description": "", "name": "hsc", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(selector='hsc',random(-2,-1,-0.5,0.5,2),1)"}}, "variablesTest": {"maxRuns": 100, "condition": ""}, "extensions": ["jsxgraph"], "variable_groups": [], "statement": "", "rulesets": {"std": ["all", "fractionNumbers"]}, "parts": [{"prompt": "
Monthly Rainfall Figures 2012 (inches)
\n
\n
Within the four months detailed above, approximately what proportion of Manchester’s rainfall occurred in December?
", "variableReplacements": [], "distractors": ["", "", "", "", ""], "choices": ["

", "

", "

", "