// Numbas version: exam_results_page_options {"name": "Finding a% of b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "adec"], "name": "Finding a% of b", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

Note that {a}% is the same as {adec}.

\n

So we need to calculate $\\var{adec} \\times \\var{b}.$

", "rulesets": {}, "parts": [{"prompt": "

Round your answer to the nearest penny.

\n

£[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{a}*{b}/100+0.01", "minValue": "{a}*{b}/100-0.01", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Find the value of {a}% of £{b}.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(2, 5,8, 12, 15, 20, 22,30, 35, 45, 64, 72, 95)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "b": {"definition": "random (150..250)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "adec": {"definition": "a/100", "templateType": "anything", "group": "Ungrouped variables", "name": "adec", "description": ""}}, "metadata": {"description": "

Find a% of b using a calculator. Suggested method to use decimal equivalent.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}