// Numbas version: exam_results_page_options {"name": "Percentage error in rounding to 1 significant figure", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["num1", "num2", "num3", "ans", "num4"], "name": "Percentage error in rounding to 1 significant figure", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

$ABS(\\frac{(\\var{num4} - (\\frac{\\var{num1} \\times \\var{num2}}{\\var{num3}}))}{(\\frac{\\var{num1} \\times \\var{num2}}{\\var{num3}})}) \\times 100 = \\var{ans}$

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

Calculate the percentage error, correct to one decimal place?

\n

[[0]]%

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

You need to find an accurate answer. Work your division up to 4 decimal places to be sure you have  the accuracy required. Then figure out how wrong the guess was. Find the absolute value ( or positive value) of this error and find out what percentage that is of the correct value.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "gaps": [{"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans}", "strictPrecision": true, "minValue": "{ans}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "1", "scripts": {}, "marks": "3", "showPrecisionHint": false, "type": "numberentry"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

A person used $\\var{num4}$ as an approximation for $\\frac{\\var{num1} \\times \\var{num2}}{\\var{num3}}$.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"num4": {"definition": "(precround(num1,0)* precround(num2,0))/ precround(num3,1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num4", "description": ""}, "num3": {"definition": "random(0.5..1.5#0.01 except 1)", "templateType": "anything", "group": "Ungrouped variables", "name": "num3", "description": ""}, "num1": {"definition": "random(84.01..90.99#0.01 except[84.5,85,85.5,85,86.5,87,87.5,88,88.5,89,89.5])", "templateType": "anything", "group": "Ungrouped variables", "name": "num1", "description": ""}, "num2": {"definition": "random(2.01..3.49#0.01 except 2.5 except 3 except 3.5)", "templateType": "anything", "group": "Ungrouped variables", "name": "num2", "description": ""}, "ans": {"definition": "(abs(num4-((num1*num2)/num3))/((num1*num2)/num3))*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans", "description": ""}}, "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "contributors": [{"name": "Nigel Atkins", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/275/"}]}]}], "contributors": [{"name": "Nigel Atkins", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/275/"}]}