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

Simple ratio question with custom marking and partial credit possible

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

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

", "variable_groups": [], "preamble": {"css": "", "js": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["studentrat", "percent"], "name": "Josh's copy of Julie's copy of Pupil Teacher Ratio randomised", "variables": {"percent": {"templateType": "anything", "description": "", "name": "percent", "definition": "(1/(studentrat+1))*100", "group": "Ungrouped variables"}, "studentrat": {"templateType": "anything", "description": "", "name": "studentrat", "definition": "Random(17..22)", "group": "Ungrouped variables"}}, "extensions": [], "parts": [{"allowFractions": false, "type": "numberentry", "precision": "2", "strictPrecision": false, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "showPrecisionHint": true, "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 )", "marks": "10", "unitTests": [], "showCorrectAnswer": true, "extendBaseMarkingAlgorithm": true, "precisionType": "dp", "minValue": "percent", "scripts": {}, "variableReplacementStrategy": "originalfirst", "notationStyles": ["plain", "en", "si-en"], "precisionMessage": "You have not given your answer to the correct precision.", "mustBeReduced": false, "variableReplacements": [], "precisionPartialCredit": 0, "prompt": "

What percentage of the school population are teachers?

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

", "type": "question", "functions": {}, "rulesets": {}, "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/"}, {"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}]}], "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/"}, {"name": "Josh Lim", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2990/"}]}