// Numbas version: finer_feedback_settings {"name": "Musa's copy of 3 Using BODMAS", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Musa's copy of 3 Using BODMAS", "tags": [], "metadata": {"description": "

Use the BODMAS rule to determine the order in which to evaluate some arithmetic expressions. 

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Wrong order of solving operations can often lead to incorrect answers.  Therefore, the order in which we carry out a calculation is important.

\n

BODMAS is a mnemonic which tells us the correct order in which operations should be carried out:

\n
\n

Brackets ⇒ Ordinals ⇒ Division/Multiplication ⇒ Addition/Subtraction

\n
\n

Apply BODMAS and try to solve these calculations.

", "advice": "

The correct order of carrying out operations can be remembered by the mnemonic BODMAS:

\n
\n

Brackets ⇒ Ordinals ⇒ Division/Multiplication ⇒ Addition/Subtraction

\n
\n

It is important to notice that division and multiplication have the same priority - division does not have a priority over multiplication. Similarly, adition and subtraction also have the same priority. When the order is unclear, we work from left to right.

\n

Note that brackets have the highest priority, but when we evaluate them, we still need to follow BODMAS inside them.

\n

Sometimes, an alternative acronym BIDMAS (Brackets, Indices, ...) is also used.

\n

a)

\n

Division and multiplication have the same priority, so we just work from left to right. $\\var{int*int} ÷ \\var{int}  = \\var{int}$ and hence

\n

\\[\\begin{align} \\var{int*int} ÷ \\var{int} \\times \\var{int} &= \\var{int} \\times \\var{int} \\\\&= \\var{int*int} \\text{.}   \\end{align}\\]

\n

\n

b)

\n

Applying BODMAS, multiplication has a priority over addition. $\\var{sint + 2} \\times \\var{sint} = \\var{(sint + 2)*sint}$ and hence

\n

\\[\\begin{align} \\var{sint} + \\var{sint + 2} \\times \\var{sint} &= \\var{sint} + \\var{(sint + 2)*sint} \\\\&= \\var{sint + (sint + 2)*sint}\\text{.} \\end{align}\\]

\n

\n

c)

\n

Applying BODMAS, multiplication and division have priority over addition and subtraction. $1 \\times 0 = 0$ and $\\var{bint}\\div\\var{bint} = 1$ so

\n

\\[\\begin{align} \\var{bint - 15} - 1 \\times 0 + \\var{bint}\\div\\var{bint} &= \\var{bint - 15} - 0 + 1 \\\\&= \\var{bint - 14}\\text{.} \\end{align}\\]

\n

", "rulesets": {}, "extensions": [], "variables": {"int": {"name": "int", "group": "Ungrouped variables", "definition": "random(2..10 except sint)", "description": "

Random integer from 2 to 10.

", "templateType": "anything"}, "oint": {"name": "oint", "group": "Ungrouped variables", "definition": "random(1..9 #2 except int except sint)", "description": "

Random odd integer from 1 to 9.

", "templateType": "anything"}, "bint": {"name": "bint", "group": "Ungrouped variables", "definition": "random(20..50)", "description": "

A random slightly bigger integer.

", "templateType": "anything"}, "pint": {"name": "pint", "group": "Ungrouped variables", "definition": "random(1..4 except 3)", "description": "

1, 2 or 4.

", "templateType": "anything"}, "eint": {"name": "eint", "group": "Ungrouped variables", "definition": "random(1..9 #2 except int except sint)", "description": "

Random even integer from 2 to 10.

", "templateType": "anything"}, "sint": {"name": "sint", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "

Random integer from 1 to 5.

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["int", "sint", "eint", "oint", "pint", "bint"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\var{int*int} ÷ \\var{int} \\times \\var{int} =$  $?$

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

{int*int}

", "

{int}

", "

1

"], "matrix": ["1", 0, 0], "distractors": ["", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\var{sint} + \\var{sint + 2} \\times \\var{sint} =$  $?$

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

{(sint + sint + 2)*sint}

", "

{sint + (sint + 2)*sint}

", "

{(((sint + sint + 2)*sint) + (sint + (sint + 2)*sint))/2}

"], "matrix": [0, "1", 0], "distractors": ["", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

$\\var{bint - 15} - 1 \\times 0 + \\var{bint}\\div\\var{bint} =$  $?$

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["

1

", "

{bint - 14}

"], "matrix": ["0", "1"], "distractors": ["", ""]}], "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Stanislav Duris", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1590/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}