// Numbas version: exam_results_page_options {"name": "Simon's copy of Q1 (Percentage Error)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "statement": "

 Calculate the following correct to one decimal place:

", "preamble": {"css": "", "js": ""}, "tags": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "ungrouped_variables": ["material", "est", "lent", "ans1", "name1", "est1", "est2", "cost", "ans2", "att", "ans3", "game", "item"], "rulesets": {}, "parts": [{"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]]%

", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "stepsPenalty": 0, "showFeedbackIcon": true, "sortAnswers": false, "gaps": [{"minValue": "{ans1}", "correctAnswerFraction": false, "mustBeReduced": false, "mustBeReducedPC": 0, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "precisionType": "dp", "type": "numberentry", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "showPrecisionHint": false, "extendBaseMarkingAlgorithm": true, "maxValue": "{ans1}", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "precision": "1", "marks": 1, "allowFractions": false, "strictPrecision": false, "showFeedbackIcon": true}], "marks": 0, "type": "gapfill", "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.

", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "unitTests": [], "marks": 0, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "type": "information", "showCorrectAnswer": true}]}, {"prompt": "

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

\n

[[0]]%

", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"minValue": "{ans2}", "correctAnswerFraction": false, "mustBeReduced": false, "mustBeReducedPC": 0, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "precisionType": "dp", "type": "numberentry", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "showPrecisionHint": false, "extendBaseMarkingAlgorithm": true, "maxValue": "{ans2}", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "precision": "1", "marks": 1, "allowFractions": false, "strictPrecision": false, "showFeedbackIcon": true}], "showFeedbackIcon": true, "sortAnswers": false, "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]]%

", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "extendBaseMarkingAlgorithm": true, "variableReplacements": [], "showCorrectAnswer": true, "gaps": [{"minValue": "{ans3}", "correctAnswerFraction": false, "mustBeReduced": false, "mustBeReducedPC": 0, "variableReplacements": [], "precisionMessage": "You have not given your answer to the correct precision.", "correctAnswerStyle": "plain", "precisionType": "dp", "type": "numberentry", "scripts": {}, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst", "unitTests": [], "showPrecisionHint": false, "extendBaseMarkingAlgorithm": true, "maxValue": "{ans3}", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "precisionPartialCredit": 0, "precision": "1", "marks": 1, "allowFractions": false, "strictPrecision": false, "showFeedbackIcon": true}], "showFeedbackIcon": true, "sortAnswers": false, "marks": 0, "type": "gapfill"}], "advice": "

Work out the positive value of error (denoted by vertical lines below, e.g. |5-7| is 2 not -2), divide by the true value, then multiply by 100 to convert to a percentage. Remember to give answers to 1 d.p. as requested.

\n

Part 1:

\n

Percentage error:

\n

$\\frac{|\\var{est} - \\var{lent}|}{\\var{lent}} \\times 100 = \\var{precround(ans1,1)}$%

\n

Part 2:

\n

Percentage error:

\n

$\\frac{|\\var{est1} - \\var{cost}|}{\\var{cost}} \\times 100 = \\var{precround(ans2,1)}$%

\n

Part 3:

\n

Percentage error:

\n

$\\frac{|\\var{est2} - \\var{att}|}{\\var{att}} \\times 100 = \\var{precround(ans3,1)}$%

\n

", "functions": {}, "metadata": {"description": "

Percentage Error

\n

rebelmaths

", "licence": "Creative Commons Attribution 4.0 International"}, "variables": {"est2": {"name": "est2", "group": "Ungrouped variables", "definition": "random(5000..10000#500)", "templateType": "anything", "description": ""}, "lent": {"name": "lent", "group": "Ungrouped variables", "definition": "random((est-8)..(est+8) except[est,(est-1),est-2,est-3,(est+1),(est+2),(est+3)])", "templateType": "anything", "description": ""}, "ans2": {"name": "ans2", "group": "Ungrouped variables", "definition": "(abs(est1 - cost)/ cost)*100", "templateType": "anything", "description": ""}, "est": {"name": "est", "group": "Ungrouped variables", "definition": "random(30..70#10)", "templateType": "anything", "description": ""}, "cost": {"name": "cost", "group": "Ungrouped variables", "definition": "random(est1-50..est1+50#10 except[est1,est1-10,est1+10])", "templateType": "anything", "description": ""}, "material": {"name": "material", "group": "Ungrouped variables", "definition": "random('copper','brass','metal','steel')", "templateType": "anything", "description": ""}, "game": {"name": "game", "group": "Ungrouped variables", "definition": "random('tennis','football','soccer','hurling')", "templateType": "anything", "description": ""}, "ans1": {"name": "ans1", "group": "Ungrouped variables", "definition": "(abs(est-lent)/lent)*100", "templateType": "anything", "description": ""}, "name1": {"name": "name1", "group": "Ungrouped variables", "definition": "random('Susan','Rose','Lisa','Karen','Kate','Vicky')", "templateType": "anything", "description": ""}, "est1": {"name": "est1", "group": "Ungrouped variables", "definition": "random(500..700#50)", "templateType": "anything", "description": ""}, "ans3": {"name": "ans3", "group": "Ungrouped variables", "definition": "(abs(est2 - att)/ att)*100", "templateType": "anything", "description": ""}, "item": {"name": "item", "group": "Ungrouped variables", "definition": "random('car','motorbike','computer','van')", "templateType": "anything", "description": ""}, "att": {"name": "att", "group": "Ungrouped variables", "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", "description": ""}}, "name": "Simon's copy of Q1 (Percentage Error)", "variable_groups": [], "type": "question", "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "TEAME CIT", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/591/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}