// Numbas version: exam_results_page_options {"name": "Q1 (Percentage Error)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["material", "est", "lent", "ans1", "name1", "est1", "est2", "cost", "ans2", "att", "ans3", "game", "item"], "name": "Q1 (Percentage Error)", "tags": ["rebelmaths"], "advice": "

Part 1:

\n

Percentage error:

\n

$abs(\\frac{\\var{est} - \\var{lent}}{\\var{lent}}) \\times 100 = \\var{ans1}$%

\n

Part 2:

\n

Percentage error:

\n

$abs(\\frac{\\var{est1} - \\var{cost}}{\\var{cost}}) \\times 100 = \\var{ans2}$%

\n

Part 3:

\n

Percentage error:

\n

$abs(\\frac{\\var{est2} - \\var{att}}{\\var{att}}) \\times 100 = \\var{ans3}$%

\n

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

The length of a $\\var{material}$ bar was estimated to be $\\var{est}$ cm. If the true length was $\\var{lent}$ cm, calculate the percentage error.

\n

[[0]]%

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

First find out how wrong the guess was (the error). This is the difference between the guess and the true value. We always use the positive number.

\n

Find what percentage this is of the true value.

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

The estimate to repair a $\\var{item}$ was $€\\var{est1}$. If the final cost was $€\\var{cost}$, calculate the percentage error.

\n

[[0]]%

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

The attendance at a $\\var{game}$ match was estimated to be $€\\var{est2}$ people. If the actual attendance was $€\\var{att}$, calculate the percentage error.

\n

[[0]]%

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

 Calculate the following correct to one decimal place:

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"material": {"definition": "random('copper','brass','metal','steel')", "templateType": "anything", "group": "Ungrouped variables", "name": "material", "description": ""}, "lent": {"definition": "random((est-8)..(est+8) except[est,(est-1),est-2,est-3,(est+1),(est+2),(est+3)])", "templateType": "anything", "group": "Ungrouped variables", "name": "lent", "description": ""}, "ans1": {"definition": "(abs(est-lent)/lent)*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "(abs(est1 - cost)/ cost)*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "(abs(est2 - att)/ att)*100", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "att": {"definition": "random(est2-500..est2+1000#20 except[est2,est2-20,est2-40,est2-60,est2-80,est2+20,est2+40,est2+60,est2+80,est2+100,est2-100])", "templateType": "anything", "group": "Ungrouped variables", "name": "att", "description": ""}, "item": {"definition": "random('car','motorbike','computer','van')", "templateType": "anything", "group": "Ungrouped variables", "name": "item", "description": ""}, "game": {"definition": "random('tennis','football','soccer','hurling')", "templateType": "anything", "group": "Ungrouped variables", "name": "game", "description": ""}, "cost": {"definition": "random(est1-50..est1+50#10 except[est1,est1-10,est1+10])", "templateType": "anything", "group": "Ungrouped variables", "name": "cost", "description": ""}, "est": {"definition": "random(30..70#10)", "templateType": "anything", "group": "Ungrouped variables", "name": "est", "description": ""}, "est2": {"definition": "random(5000..10000#500)", "templateType": "anything", "group": "Ungrouped variables", "name": "est2", "description": ""}, "name1": {"definition": "random('Susan','Rose','Lisa','Karen','Kate','Vicky')", "templateType": "anything", "group": "Ungrouped variables", "name": "name1", "description": ""}, "est1": {"definition": "random(500..700#50)", "templateType": "anything", "group": "Ungrouped variables", "name": "est1", "description": ""}}, "metadata": {"description": "

Percentage Error

\n

rebelmaths

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