// Numbas version: finer_feedback_settings {"name": "NA Find the larger share for a given ratio (10+)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NA Find the larger share for a given ratio (10+)", "tags": ["LANTITE", "Western Sydney MESH"], "metadata": {"description": "

Used for LANTITE preparation (Australia). NA = Number & Algebra strand. Students are given a ratio, and the total number of dancers. They must calculate the number of girls (the larger share). The ratio, and total number are randomly generated.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "
\n
\n
\n

The ratio of boys to girls at a dance school is  {boysratio} : {girlsratio}. 

\n

There are {classsize} pupils enrolled in the dance school altogether.

", "advice": "
\n
\n

The ratio of boys as to girls at the dance school is  {boysratio} : {girlsratio}.

\n

We can divide the dance students into {boysratio + girlsratio} equal groups, with {boysratio} of the groups for boys, and {girlsratio} of the groups for girls.

\n

How many dance students would be in each group?

\n

{classsize} ÷ {boysratio + girlsratio} = {scalefactor}. There are {scalefactor} students in each group.

\n

There are {girlsratio} x {scalefactor} = {scalefactor*girlsratio} girls, as there are {girlsratio} groups of girls.

", "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
\n

The number of girls in the ratio.

", "templateType": "anything", "can_override": false}, "classsize": {"name": "classsize", "group": "Ungrouped variables", "definition": "scalefactor*(boysratio+girlsratio)", "description": "
\n
\n
\n

The 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
\n

The 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
\n

The 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
\n

The 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": "
\n

How many girls are there in the dance school?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["{boysratio*scalefactor}", "{girlsratio*scalefactor}", "{trunc(((girlsratio+boysratio)*scalefactor)/2)}", "{girlsratio+boysratio}"], "matrix": ["0", "1", 0, 0], "distractors": ["", "Well done!", "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", "type": "question", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}