// Numbas version: exam_results_page_options {"name": "Percentage of an amount", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["onepercofamt", "ans1", "ans2", "perc1", "perc2", "amt"], "name": "Percentage of an amount", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

To find A% of B

\n
    \n
  1. Find 1% of B by dividing B by 100
  2. \n
  3. Multiply 1% of B by A
  4. \n
", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

What's $\\var{perc1}$% of £$\\var{amt}$?  £[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "

$1\\%$  of  $\\var{amt}  = \\frac {\\var{amt}} {100} = \\var{onePercOfamt}$

\n

So   you   want  $\\var{perc1} \\times  \\var{onePercOfamt} $

\n

Or  you  can  work  out   $\\frac{\\var{perc1}\\times\\var{amt}} {100}$  directly.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "ans1", "minValue": "ans1", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "

What's $\\var{perc2}$% of £$\\var{amt}$?  £[[0]]  Please give your answer to exactly 2 decimal places.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"precisionType": "dp", "precisionMessage": "

Please give your answer to 2 decimal places.

", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans2}", "strictPrecision": true, "minValue": "{ans2}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": 2, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

Finding a Percentage of an amount.

\n

Try the first question without using a calculator...

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"onepercofamt": {"definition": "amt/100", "templateType": "anything", "group": "Ungrouped variables", "name": "onepercofamt", "description": ""}, "ans1": {"definition": "perc1*amt/100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "perc2*amt/100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "perc1": {"definition": "10*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc1", "description": ""}, "perc2": {"definition": "10*random(1..9)+random(1..9)+random(1..9)/10", "templateType": "anything", "group": "Ungrouped variables", "name": "perc2", "description": ""}, "amt": {"definition": "10*random(1..99)", "templateType": "anything", "group": "Ungrouped variables", "name": "amt", "description": ""}}, "metadata": {"description": "

Finding a percentage of an amount.

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