// Numbas version: finer_feedback_settings {"name": "One number as a percentage of another number", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "perc", "b", "aoverb", "a2", "b2", "perc2"], "name": "One number as a percentage of another number", "tags": ["percent"], "advice": "

To express A as a percentage of B

\n
    \n
  1. Find A/B as a decimal.
  2. \n
  3. Write the decimal as a percentage.
  4. \n
", "rulesets": {}, "parts": [{"stepsPenalty": 0, "prompt": "

What's $\\var{A}$ expressed as a percentage of $\\var{B}$?   $\\var{A}$ is [[0]]% of $\\var{B}$.

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

First  work  out $\\frac {\\var{a}} {\\var{b}}$  as  a  decimal =  $\\var{AOverB}$

\n

Then  convert  the  decimal  to  a  percentage. 

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "marks": 0, "scripts": {}, "showCorrectAnswer": true, "type": "gapfill"}, {"prompt": "

What's $\\var{A2}$ expressed as a percentage of $\\var{B2}$?   $\\var{A2}$ is [[0]]% of $\\var{B2}$.  Please give your answer to exactly 2 decimal places.

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

Please give your answer to exactly 2 decimal places.

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

Finding what A is, expressed as a percentage of B.

\n

For example, 15 is 5% of 300.

\n

Try the first question without a calculator.

\n

 

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "5*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "perc": {"definition": "random(5,10,20,25,40,50,80,100)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc", "description": ""}, "b": {"definition": "A*100/perc", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "aoverb": {"definition": "A/B", "templateType": "anything", "group": "Ungrouped variables", "name": "aoverb", "description": ""}, "a2": {"definition": "5*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "b2": {"definition": "10*random(1..100)", "templateType": "anything", "group": "Ungrouped variables", "name": "b2", "description": ""}, "perc2": {"definition": "precround(A2*100/B2,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc2", "description": ""}}, "metadata": {"description": "

What's A as a percentage of B?

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