0% found this document useful (0 votes)
180 views7 pages

Internet of Things Grade 11 Module 4

1. The document discusses arithmetic, logical, and relational operators and expressions that are used in computer programming and Internet of Things applications. 2. Examples are provided to demonstrate how arithmetic expressions are evaluated based on operator precedence, and how logical and relational expressions are used to compare values and evaluate to true or false. 3. Self-learning activities are included for students to practice creating expressions using these different operators and to solve problems applying the concepts.

Uploaded by

Allenmay Lagoras
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
180 views7 pages

Internet of Things Grade 11 Module 4

1. The document discusses arithmetic, logical, and relational operators and expressions that are used in computer programming and Internet of Things applications. 2. Examples are provided to demonstrate how arithmetic expressions are evaluated based on operator precedence, and how logical and relational expressions are used to compare values and evaluate to true or false. 3. Self-learning activities are included for students to practice creating expressions using these different operators and to solve problems applying the concepts.

Uploaded by

Allenmay Lagoras
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

INTERNET OF THINGS GRADE 11- MODULE 4

Grade Level: Grade 11

SLA No. 4: Arithmetic Operator and Expression


Subject Code/Number: STEM 10
Subject Title: INTERNET OF THINGS 10
Teacher: Aiels Daryl Belarmino

I. Introduction
Every day we uses simple mathematical expression . Counting numbers or simple adding
things.We cannot deny that arithmetic is useful in every way. In this chapter , we will learn how
arithmetic operator integrate with computer based platform.

A. Learning Competency

 Provide technique on how computer solve arithmetic expression


 Examine the proper operator in an expression
 Organize codes with arithmetic operators

B. Learning Outcomes

1. Evaluate the input-process-output


2. Able to create an algorithm
3. Assess the function of its boards, sensor, actuator and networks

II. Learning Content

ARITHMETIC OPERATIONS and EXPRESSIONS


INTERNET OF THINGS GRADE 11- MODULE 4
Grade Level: Grade 11

Arithmetic operators are used in an arithmetic expression to tell the computer how this expression/s
involving numeric data is to be evaluated into a single value. An arithmetic expression in a program consists
of one or more numeric data and arithmetic operators.

Example 1: The computer will evaluate the following


arithmetic expression
10 + 6 – 11
from left to right since addition(+) and subtraction(–) have the same priority. Therefore,

10 + 6 – 11
1 2

(1) 10 + 6 = 16
(2) 16 – 11 =
INTERNET OF THINGS GRADE 11- MODULE 4
Grade Level: Grade 11

Example 2: The computer will evaluate the following arithmetic expression


2+9/3*5
starting with / and * (left to right for same priority) and then + which has a lower priority.
Therefore,
2+9/3*5
3 1 2

(1) 9/3=3
(2) 3 * 5 = 15
(3) 2 + 15 = 17

Example 3: The computer will evaluate the following arithmetic expression


((2+2)*2)%10
equation with parenthesis, the inner equation within the parenthesis should be performed first.
Therefore,
((2+2)*2)%10
1 2 3

(1) 2+2=4
(2) 4*2=8
(3) 8 % 10 = 8

RELATIONAL OPERATIONS and EXPRESSIONS


Relational operators are used in relational expression/s to compare the values of any two expressions. A
relational expression will evaluate to a logical value of either true (.T.) or false (.F.). A true or false expression
is also called a logical expression or condition.
INTERNET OF THINGS GRADE 11- MODULE 4
Grade Level: Grade 11

In computer, aspect works the same.


Relational Expression Used To Determine If
• surName = “dela Cruz” surName literal value is “dela Cruz”
• age <= 17 age literal value is below or equal to 17
• course != ”BSIT” course literal value is not “BSIT”
• sales >= 50000 sales has reached the quota of ₱50000.00
• failed != .T. failed is not true(.T.)

LOGICAL OPERATIONS and LOGICAL EXPRESSIONS

Logical operators are used in connection with true (.T.) or false (.F.) relational expressions that compare the
values of some data.

Logical operators evaluate Boolean expressions and return a Boolean value. A logical expression, which
consists of one or more relational expressions and logical operators, will also evaluate to either true or
false. Logical expressions and relational expressions are the same in the sense that they both represent
true or false logical conditions.
INTERNET OF THINGS GRADE 11- MODULE 4
Grade Level: Grade 11

.NOT. reverses the logical value of a relational expression while .AND. and .OR. are used to combine
two or more relational expressions into a single true or false logical condition
Truth Table

GENERAL DIRECTIONS: Copy the question and answer the on a one whole sheet paper, take
a photo of your work and upload it your SAMS account under the folder created by your
teacher. If the SAMS is not available, you may upload your activity to an online classroom
provided.

III. Self-Learning Activities

Activity 1.Instructions: List at least 20 each expression for Arithmetic, Logical and Relational.

Activity 2.Instructions: Create 15 problem statement with the use Arithmetic , Logical and
Relational.

IV. Looking Back

Direction: Copy the question and answer the on a clean paper. Evaluate the following
arithmetic expressions according to the priority order of the indicated operations:

1. 10 / 5 + 4

2. 5 * 2 / 2 + 4 / 2

3. (5 * 2) * 2 + 3 * 2

4. ((6 - 2) + 8 % 4 * 2) + 5

5. (8 * 2 + 4 - 5) % (16 / 2 + 2 - 7)
INTERNET OF THINGS GRADE 11- MODULE 4
Grade Level: Grade 11

Evaluate the following arithmetic expressions according to the priority order of the indicated
operations: For items 6-10: Let A = 3, B = -2, and C = 4

6. A / 2 * B

7. A / (2*B)

8. (B + C) / (C - A)

9. A + B – C

10. B + C / C – 4

Test II.

Construct a valid logical expression for each of the following conditions. Use the capitalized
words as variable names.

1. Total SALES exceed ten thousand pesos.

2. Exchange rate is below 42.90 pesos per dollar.

3. A woman’s shoe SIZE is at least seven and a half inches.

4. Inventory LEVEL is already below the REORDER level.

5. A man’s PENSION is below 5,000 pesos and his SSS insurance is at most 2,000 pesos.
INTERNET OF THINGS GRADE 11- MODULE 4
Grade Level: Grade 11

V. Extension of Learning
 Read and study in advance the following
o Block Programming
o IOT Starter Kit.

REFERENCES
https://www.atmosphere-eubrazil.eu/designing-open-iot-ecosystem
https://acerforeducation.acer.com
https://press.rebus.community/programmingfundamentals/chapter/input-process-output-model

You might also like