// Numbas version: finer_feedback_settings {"name": "Finding an amount if you know what some percentage of it is.", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["onepercentofa1", "a1", "a2", "b1", "b2", "perc1", "perc2"], "name": "Finding an amount if you know what some percentage of it is.", "tags": ["percent"], "preamble": {"css": "", "js": ""}, "advice": "
To find A, if B% of A is C
\nWhat's A, if $\\var{perc1}$% of A = $\\var{B1}$. Answer: A = [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "steps": [{"prompt": "If $\\var{perc1}\\%$ of A = $\\var{B1}$, $1\\%$ of A = $\\frac {\\var{B1}} {\\var{perc1} }$ = $\\var{onePercentOfA1}$
\nSo you want $100 \\times \\var{onePercentOfA1}$ = ?
\nOr you can work out $\\frac {\\var{B1}\\times 100} {\\var{perc1} }$ directly.
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{A1}", "minValue": "{A1}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}, {"prompt": "What's A, if $\\var{perc2}$% of A = $\\var{B2}$. Answer: A = [[0]]
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{A2}", "minValue": "{A2}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "What's A, if B% of A is C?
\nFor example, what's A, if 30% of A is 21? Answer: A = 70.
\nTry the first question without using a calculator.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"onepercentofa1": {"definition": "B1/perc1", "templateType": "anything", "group": "Ungrouped variables", "name": "onepercentofa1", "description": ""}, "a1": {"definition": "100*random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": ""}, "a2": {"definition": "10*random(1..999)", "templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": ""}, "b1": {"definition": "A1*perc1/100", "templateType": "anything", "group": "Ungrouped variables", "name": "b1", "description": ""}, "b2": {"definition": "a2*perc2/100", "templateType": "anything", "group": "Ungrouped variables", "name": "b2", "description": ""}, "perc1": {"definition": "2*random(1,2,4,8,10)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc1", "description": ""}, "perc2": {"definition": "100*random(0,0,0,1)+10*random(1..9)+random(1..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "perc2", "description": ""}}, "metadata": {"description": "What's A, if B% of A is C?
\n", "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/"}]}