// Numbas version: exam_results_page_options {"name": "Rounding and estimating calculations", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"showfrontpage": false, "preventleave": false, "allowregen": true}, "question_groups": [{"questions": [{"statement": "

It is often appropriate to estimate calculations. The sign ≈ denotes \"approximately equal to\".

\n

In this question, approximate calculations by rounding the numbers in the question to 1 significant figure before calculating answers.

", "ungrouped_variables": ["a", "int", "integers", "sint", "b", "c", "ran", "tens"], "preamble": {"css": "fraction {\n display: inline-block;\n vertical-align: middle;\n}\nfraction > numerator, fraction > denominator {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 2.5em;\n}\nfraction > numerator {\n border-bottom: 1px solid;\n padding-bottom: 5px;\n}\nfraction > denominator {\n padding-top: 5px;\n}\nfraction input {\n line-height: 1em;\n}\n\nfraction .part {\n margin: 0;\n}\n\n.table-responsive, .fractiontable {\n display:inline-block;\n}\n.fractiontable {\n padding: 0; \n border: 0;\n}\n\n.fractiontable .tddenom \n{\n text-align: center;\n}\n\n.fractiontable .tdnum \n{\n border-bottom: 1px solid black; \n text-align: center;\n}\n\n\n.fractiontable tr {\n height: 3em;\n}", "js": ""}, "type": "question", "variable_groups": [], "rulesets": {}, "name": "Rounding and estimating calculations", "parts": [{"prompt": "

Estimate $\\var{int[0]} \\times \\var{int[1]}$.

\n

[[0]]  $\\times$    [[1]]  $=$  [[2]]

\n

Therefore, $\\var{int[0]} \\times \\var{int[1]} ≈$  [[2]].

", "variableReplacements": [], "scripts": {}, "type": "gapfill", "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "mustBeReduced": false, "marks": "0.5", "showFeedbackIcon": true, "mustBeReducedPC": 0, "maxValue": "siground(int[0], 1)", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "correctAnswerStyle": "plain", "variableReplacements": [], "minValue": "siground(int[0], 1)"}, {"showCorrectAnswer": true, "mustBeReduced": false, "marks": "0.5", "showFeedbackIcon": true, "mustBeReducedPC": 0, "maxValue": "siground(int[1], 1)", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "correctAnswerStyle": "plain", "variableReplacements": [], "minValue": "siground(int[1], 1)"}, {"showCorrectAnswer": true, "mustBeReduced": false, "marks": "1", "showFeedbackIcon": true, "mustBeReducedPC": 0, "maxValue": "siground(int[0], 1)*siground(int[1], 1)", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "correctAnswerStyle": "plain", "variableReplacements": [], "minValue": "siground(int[0], 1)*siground(int[1], 1)"}], "showCorrectAnswer": true}, {"prompt": "

Estimate $\\var{sint} \\times \\var{int[2]}$.

\n

[[0]]  $\\times$    [[1]]  $=$  [[2]]

\n

Therefore, $\\var{sint} \\times \\var{int[2]} ≈$  [[2]].

", "variableReplacements": [], "scripts": {}, "type": "gapfill", "marks": 0, "variableReplacementStrategy": "originalfirst", "showFeedbackIcon": true, "gaps": [{"showCorrectAnswer": true, "mustBeReduced": false, "marks": "0.5", "showFeedbackIcon": true, "mustBeReducedPC": 0, "maxValue": "siground(sint, 1)", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "correctAnswerStyle": "plain", "variableReplacements": [], "minValue": "siground(sint, 1)"}, {"showCorrectAnswer": true, "mustBeReduced": false, "marks": "0.5", "showFeedbackIcon": true, "mustBeReducedPC": 0, "maxValue": "siground(int[2], 1)", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "correctAnswerStyle": "plain", "variableReplacements": [], "minValue": "siground(int[2], 1)"}, {"showCorrectAnswer": true, "mustBeReduced": false, "marks": 1, "showFeedbackIcon": true, "mustBeReducedPC": 0, "maxValue": "siground(sint, 1)*siground(int[2], 1)", "allowFractions": false, "notationStyles": ["plain", "en", "si-en"], "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "correctAnswerStyle": "plain", "variableReplacements": [], "minValue": "siground(sint, 1)*siground(int[2], 1)"}], "showCorrectAnswer": true}, {"prompt": "

Estimate $\\displaystyle \\frac{\\var{int[3]} - \\var{int[4]}}{\\var{b}}$.

\n

[[0]] $-$  [[1]] [[2]]   $=$ [[3]]

\n

Therefore, $\\displaystyle \\frac{\\var{int[3]} - \\var{int[4]}}{\\var{b}} ≈$  [[3]].

Estimate $\\displaystyle \\frac{\\var{int[5]*10 + ran}}{\\var{c}} - \\var{a}$.

\n

[[0]] [[1]]   $-$  [[2]]  $=$  [[3]]

\n

Therefore, $\\displaystyle \\frac{\\var{int[5]*10 + ran}}{\\var{c}} - \\var{a} ≈$  [[3]].

Integers from 1 to 100.

", "name": "integers", "templateType": "range", "group": "Ungrouped variables"}, "ran": {"definition": "random(1..4)", "description": "", "name": "ran", "templateType": "anything", "group": "Ungrouped variables"}, "a": {"definition": "random(1..40 #0.1 except integers)", "description": "

A decimal number.

", "name": "a", "templateType": "anything", "group": "Ungrouped variables"}, "b": {"definition": "random(15..24.99 #0.001 except integers) + random(0..20 #20)", "description": "

Integer (if rounded to 1 s.f. either 20 or 40).

", "name": "b", "templateType": "anything", "group": "Ungrouped variables"}, "int": {"definition": "repeat(random(10..99 except tens),6)", "description": "

6 random integers.

", "name": "int", "templateType": "anything", "group": "Ungrouped variables"}, "c": {"definition": "random(10..24.99 #0.001 except integers)", "description": "

Integer (if rounded to 1 s.f. either 10 or 20).

", "name": "c", "templateType": "anything", "group": "Ungrouped variables"}, "tens": {"definition": "10..100#10", "description": "

Multiples of ten.

", "name": "tens", "templateType": "range", "group": "Ungrouped variables"}, "sint": {"definition": "random(2..9)", "description": "

Small integer.

", "name": "sint", "templateType": "anything", "group": "Ungrouped variables"}}, "tags": ["estimation", "rounding", "taxonomy"], "metadata": {"description": "

Estimate the result of an arithmetic operation by first rounding numbers to given significant figures

", "licence": "Creative Commons Attribution 4.0 International"}, "functions": {"int": {"language": "jme", "definition": "if(\n len(digits)=0,\n 0,\n digits[0]+10*int(digits[1..len(digits)])\n)", "type": "number", "parameters": [["digits", "list"]]}}, "advice": "

To round to 1 significant figure, we look at the first non-zero digit, increasing this digit by one if the following digit is 5 or more and keeping the digit the same if the following digit is below 5. We replace the rest of the digits by 0.

\n

#### a)

\n

\$\\var{int[0]} \\times \\var{int[1]} ≈ \\text{ ?}\$

\n

Rounding to 1 significant figure gives:

\n

\\\begin{align} \\var{siground(int[0], 1)} \\times \\var{siground(int[1], 1)} = \\var{siground(int[0], 1)*siground(int[1], 1)} \\text{.} \\end{align} \

\n

#### b)

\n

\$\\var{sint} \\times \\var{int[2]} ≈ \\text{ ?}\$

\n

Rounding to 1 significant figure:

\n

\\\begin{align} \\var{siground(sint, 1)} \\times \\var{siground(int[2], 1)} = \\var{siground(sint, 1)*siground(int[2], 1)} \\text{.} \\end{align} \

\n

A common mistake may be rounding $\\var{sint}$ to the nearest 10 instead of 1 significant figure (in this case the number itself already consists of 1 s.f. only).

\n

#### c)

\n

\$\\displaystyle \\frac{\\var{int[3]} - \\var{int[4]}}{\\var{b}} ≈ \\text{ ?}\$

\n

Rounding to 1 significant figure:

\n

\\\begin{align} \\displaystyle \\frac{\\var{siground(int[3], 1)} - \\var{siground(int[4], 1)}}{\\var{siground(b, 1)}} &=\\frac{\\var{siground(int[3], 1) - siground(int[4], 1)}}{\\var{siground(b, 1)}} \\\\&= \\var{(siground(int[3], 1) - siground(int[4], 1)) / siground(b,1)} \\text{.} \\end{align} \

\n

#### d)

\n

\$\\displaystyle \\frac{\\var{int[5]*10 + ran}}{\\var{c}} - \\var{a} ≈ \\text{ ?}\$

\n

Rounding to 1 significant figure:

\n

\\\begin{align} \\displaystyle \\frac{\\var{siground(int[5]*10, 1)}}{\\var{siground(c, 1)}} - \\var{siground(a, 1)} &= \\frac{\\var{siground(int[5]*10, 1)/10}}{\\var{siground(c, 1)/10}} - \\var{siground(a, 1)} \\\\&= \\var{(siground(int[5]*10, 1))/siground(c, 1)} - \\var{siground(a, 1)} \\\\&= \\var{siground(int[5]*10, 1)/siground(c, 1) - siground(a, 1)} \\text{.} \\end{align} \

"}], "pickingStrategy": "all-ordered"}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/", "name": "Christian Lawson-Perfect"}, {"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/", "name": "Stanislav Duris"}]}