// Numbas version: exam_results_page_options {"name": "Q6 (Calculate the minimum and maximum approximations of an estimate)", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["est", "shop", "ans1", "num", "per", "ans2"], "name": "Q6 (Calculate the minimum and maximum approximations of an estimate)", "tags": ["rebelmaths"], "preamble": {"css": "", "js": ""}, "advice": "

First calculate $\\var{num}$% of the estimate $\\var{est}$

\n

$\\frac{\\var{num}}{100} \\times \\var{est} = €\\var{per}$

\n

Part 1:

\n

Cheapest possible cost

\n

$€\\var{est} - €\\var{per} = €\\var{ans1}$

\n

Part 2:

\n

Dearest possible cost

\n

$€\\var{est} + €\\var{per} = €\\var{ans2}$

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

Calculate the cheapest and dearest possible costs, if an estimate of $€\\var{est}$ is given for a particular repair.

\n

Cheapest:    €[[0]]

\n

Dearest:      €[[1]]

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

Find the percentage of the estimate. The actual cost must be in the range $\\var{est}$ +/- $\\var{num}$%.

", "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": "{ans1}", "strictPrecision": false, "minValue": "{ans1}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}, {"precisionType": "dp", "precisionMessage": "You have not given your answer to the correct precision.", "allowFractions": false, "variableReplacements": [], "maxValue": "{ans2}", "strictPrecision": true, "minValue": "{ans2}", "variableReplacementStrategy": "originalfirst", "precisionPartialCredit": 0, "correctAnswerFraction": false, "showCorrectAnswer": true, "precision": "2", "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

$\\var{shop}$ guarantees that the actual cost of repairs will not be more than $\\var{num}$% different from any estimate.

\n

Calculate correct to two decimal place.

\n

 

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"shop": {"definition": "random('A garage','A PC repair shop','A Phone-shop',' An eletronics-shop','An engineering shop')", "templateType": "anything", "group": "Ungrouped variables", "name": "shop", "description": ""}, "est": {"definition": "random(300..500#10)", "templateType": "anything", "group": "Ungrouped variables", "name": "est", "description": ""}, "ans1": {"definition": "est-per", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "est+per", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "per": {"definition": "(est*num)/100", "templateType": "anything", "group": "Ungrouped variables", "name": "per", "description": ""}, "num": {"definition": "random(3..8)", "templateType": "anything", "group": "Ungrouped variables", "name": "num", "description": ""}}, "metadata": {"description": "

(Calculate the minimum and maximum approximations of an estimate)

\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/"}]}