// Numbas version: exam_results_page_options {"name": "Percentages: Basic Calculations 3 - In context", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Percentages: Basic Calculations 3 - In context", "tags": [], "metadata": {"description": "

Given the number of international students enrolled on a course of $n$ students, calculate the percentage of 'home' students.

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

{num_students} of the {class_size} students enrolled on a course are international students.  What percentage are 'home' students?

", "advice": "

First work out the number of students who are not international. In this case it is {class_size} - {num_students} = {class_size-num_students} students.

\n

Then write this as a fraction out of {class_size}.   $ \\frac{\\var{class_size-num_students}} {\\var{class_size}} $

\n

Then convert this to a percentage. You should put this fraction into your calculator and then multiply by 100:

\n

 $ \\frac{\\var{class_size-num_students}} {\\var{class_size}} \\times 100 = \\var{(class_size-num_students)/class_size*100}\\%$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"num_students": {"name": "num_students", "group": "Ungrouped variables", "definition": "per*class_size/100\n", "description": "

The number of students in the class who do speak a language other than English. 

", "templateType": "anything", "can_override": false}, "class_size": {"name": "class_size", "group": "Ungrouped variables", "definition": "random(80..300)", "description": "", "templateType": "anything", "can_override": false}, "per": {"name": "per", "group": "Ungrouped variables", "definition": "random(5..90 except 50)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "num_students = precround(num_students,0)", "maxRuns": 100}, "ungrouped_variables": ["num_students", "class_size", "per"], "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

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["$\\var{class_size-num_students}\\%$", "$\\var{num_students*100/class_size}\\%$", "$\\var{num_students}\\%$", "$\\var{(class_size-num_students)/class_size*100}\\%$"], "matrix": [0, 0, 0, "1"], "distractors": ["Have you converted this to a percentage? Click on Reveal Answer and scroll down for Advice regarding this question.", "How many students do NOT speak a language other than English at home? Click on Reveal Answer and scroll down for Advice regarding this question.", "How many students do NOT speak a language other than English at home? Then convert this to a percentage. Click on Reveal Answer and scroll down for Advice regarding this question.", "Well done!"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"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": "Don Shearman", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/680/"}, {"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/"}]}