// Numbas version: exam_results_page_options {"name": "Ratios: In Context - Gym Members", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Ratios: In Context - Gym Members", "tags": [], "metadata": {"description": "
Given the ratio of male to female gym members, calculate how many more women than men use the gym
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\n\n\nA gym club has male and female members in the ratio {boysratio}:{girlsratio}
\nThere are {classsize} members altogether.
", "advice": "\n\nThe ratio of males to females at the gym club is {boysratio} : {girlsratio}.
\nWe can divide the total number of members into {boysratio + girlsratio} groups, with {boysratio} of the groups for males, and {girlsratio} of the groups for females.
\n{classsize} ÷ {boysratio + girlsratio} = {scalefactor}.
\nThere are {boysratio} x {scalefactor} = {scalefactor*boysratio} males, as there are {boysratio} groups of males.
\nThere are {girlsratio} x {scalefactor} = {scalefactor*girlsratio} females, as there are {girlsratio} groups of females.
\nHowever, we need to find how many more females than males there are.
\n{scalefactor*girlsratio} - {scalefactor*boysratio} = {scalefactor*girlsratio - scalefactor*boysratio}
\nThere are {scalefactor*girlsratio - scalefactor*boysratio} more females than males.
\n", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"girlsratio": {"name": "girlsratio", "group": "Ungrouped variables", "definition": "boysratio+increment", "description": "\n\n\n\nThe number of girls in the ratio.
", "templateType": "anything", "can_override": false}, "classsize": {"name": "classsize", "group": "Ungrouped variables", "definition": "scalefactor*(boysratio+girlsratio)", "description": "\n\n\nThe total number of pupils in the dance school.
", "templateType": "anything", "can_override": false}, "scalefactor": {"name": "scalefactor", "group": "Ungrouped variables", "definition": "random(5 .. 16#1)", "description": "\n\n\nThe factor by which the ratio sum is multiplied to get the class size.
", "templateType": "randrange", "can_override": false}, "boysratio": {"name": "boysratio", "group": "Ungrouped variables", "definition": "random(2 .. 4#1)", "description": "\n\n\n\n\nThe number of boys in the ratio.
", "templateType": "randrange", "can_override": false}, "increment": {"name": "increment", "group": "Ungrouped variables", "definition": "random(2..6 except boysratio except 2*boysratio except 3*boysratio except 1.5*boysratio except 0.5*boysratio)", "description": "\n\n\n\n\n\n\nThe increment which is added to boysratio to ensure that there are more girls.
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["boysratio", "increment", "girlsratio", "scalefactor", "classsize"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "How many more females than males attend the club?
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["\n{(girlsratio-boysratio)*scalefactor}", "{girlsratio*scalefactor}", "{scalefactor}", "{girlsratio+boysratio}"], "matrix": ["1", 0, 0, 0], "distractors": ["Well done!", "Remember, you were asked how many more girls than boys there are.", "How many more girls than boys were there?", "Have you found the difference between the number of girls and boys?"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}, {"name": "Ben McGovern", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4872/"}]}