// Numbas version: exam_results_page_options {"name": "Julie's copy of Pupil Teacher Ratio randomised", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Simple ratio question with custom marking and partial credit possible

"}, "functions": {}, "rulesets": {}, "ungrouped_variables": ["studentrat", "percent"], "extensions": [], "variables": {"studentrat": {"definition": "Random(17..22)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "studentrat"}, "percent": {"definition": "(1/(studentrat+1))*100", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "percent"}}, "preamble": {"js": "", "css": ""}, "advice": "

The fraction of the school population that are teachers is $\\frac{1}{1+\\var{studentrat}}$

\n

Convert this to a decimal by multiplying by 100.

\n

$\\frac{1}{\\simplify{1+{studentrat}}}*100=\\var{percent}$

\n

", "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "tags": [], "statement": "

The ratio of teachers to pupils in a school is 1:{studentrat}

", "parts": [{"showFeedbackIcon": true, "mustBeReduced": false, "type": "numberentry", "variableReplacements": [], "showCorrectAnswer": true, "maxValue": "percent", "minValue": "percent", "strictPrecision": false, "variableReplacementStrategy": "originalfirst", "marks": "10", "precisionMessage": "You have not given your answer to the correct precision.", "prompt": "

What percentage of the school population are teachers?

", "correctAnswerFraction": false, "precision": "2", "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "scripts": {}, "mustBeReducedPC": 0, "unitTests": [], "precisionPartialCredit": 0, "customMarkingAlgorithm": "\nmark:\n apply(validNumber);\n if(isFraction,\n apply(cancelled)\n ,\n apply(correctPrecision)\n );\n switch(\n studentNumber=precround(100/(1+studentrat),studentPrecision),set_credit(1,\"Correct Answer, Well Done!\"),\n studentNumber=precround(100/studentrat,studentPrecision),set_credit(0.5,\"Some good work done but not quite there yet. Have a think about your denominator\"),\n studentNumber=precround(1/(1+studentrat),studentPrecision),set_credit(0.7,\"Is your answer a percentage?\"),\n studentNumber=precround((1+studentrat)/100.0,studentPrecision),set_credit(0.3,\"Something worthwhile here but you need to think further\"),\n set_credit(0,\"Incorrect\") \n )", "allowFractions": false, "precisionType": "dp", "showPrecisionHint": true}], "name": "Julie's copy of Pupil Teacher Ratio randomised", "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Deirdre Casey", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/681/"}]}