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

Calculate one number as percentage of another.

", "licence": "None specified"}, "statement": "", "advice": "

To find the percentage of a number we can use the formula:

\n

\\[ \\text{New value } = \\text{Original value } \\times \\text{Percentage in decimal form} \\]

\n

Firstly, to convert a percentage into decimal form we need to divide by $100$:

\n

\\[ \\var{p} \\% =  \\var{p/100} \\]

\n

Therefore,

\n

\\[ \\begin{split} \\var{p} \\% \\,\\text{ of } \\var{og} &\\,= \\var{og} \\times \\var{p/100} \\\\ &\\,= \\var{ans} \\end{split} \\]

\n

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"p": {"name": "p", "group": "Ungrouped variables", "definition": "random(1..99)", "description": "", "templateType": "anything", "can_override": false}, "og": {"name": "og", "group": "Ungrouped variables", "definition": "random(101..999)", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "og*p*0.01", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["p", "og", "ans"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Find {p}% of {og}

", "minValue": "ans", "maxValue": "ans", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"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": "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/"}]}