Lesson 1 of 3

Apply variables, expressions, assignment statements, and operator precedence order (Apply variables, expressions, assignment statements, and operator precedence order (BODMAS rule) to process, and store numbers and text in a program) to process, and store numbers and text in a program

Introduction

Before we start today's lesson, let's do a quick recap of our knowledge on the BODMAS Rule.

What is BODMAS?

B for bracket

O for order

D for division

M for multiplication

A for addition

S for subtraction

BODMAS is an acronym to help children remember the order of mathematical operations - the correct order in which to solve maths problems.

How do you apply the BODMAS rule?

BODMAS rule is a rule or order that is used to simplify the arithmetic expression involving more operators in mathematics. When an equation involves more operators, first, we have to know in which order we have to solve the expression. This problem is solved with the help of the BODMAS rule. Each letter of the word stands for the first letter of an operator. If an expression involves two or more similar operators that appear in succession, then the precedence is from left to right. By using BODMAS, we can evaluate an expression in the correct order of precedence. Anything inside the bracket is done first. Then evaluate any powers or roots. Next, do any division or multiplication in an expression working from left to right and then followed by addition and subtraction again from left to right. Here, division and multiplication have the same priority and addition and subtraction have the same priority.

Instructional Objective

By the end of today's lesson, you should be able to:

  1. Apply variables, expressions, assignment statements, and operator precedence order (BODMAS rule) to process, and store numbers and text in a program.

  2. Make a brief clarifications on using the BODMAS rule to process and store numbers and text in a program without referring to slides or handouts.

  3. Compute an expression following the operator precedence order (BODMAS) to exemplify how computers process input data to print out an answer.

Activities for the day

BODMAS and Computer Programming

BODMAS rule -BODMAS rule is a rule or order that is used to simplify the arithmetic expression involving more operators in mathematics. Variables - A variable in Mathematics is defined as the alphabetic character that expresses a numerical value or a number. In programming, variables are names given to computer memory locations in order to store data in a program. Expressions - Expressions in math are mathematical statements that have a minimum of two terms containing numbers or variables, or both, connected by an operator in between. In programming, an expression is any valid unit of code that resolves to a value. Assignment statements -An assignment statement is a statement that is used to set a value to the variable name in a program. Operators' precedence order - Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first. Application of variables - How would you apply mathematical variables?

How computers store numbers and text


Techniques in using BODMAS rule




Operator Precedence

Study the expression below carefully and watch the steps in solving them. 2x7x(2+4)+52? = 2x7(6)+52 = 2x42+52 = 84+52 = 136

We have come to the end of today's lesson. Let's do a quick overview of what we have studied today by answering the following questions.

  1. What are variables?

A variable in Mathematics is defined as the alphabetic character that expresses a numerical value or a number. In programming, variables are names given to computer memory locations in order to store data in a program.

  1. How will you solve the expression 2x7x(2+4)+52?

= 2x7(6)+52

= 2x42+52

= 84+52

= 136

  1. Explain operator precedence?

Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first.

1 Comments

Post a Comment

Previous Post Next Post