Want to create interactive content? It’s easy in Genially!

Get started free

Arithmetic, Relational & Logical Operators

Galia Gabriela Isabe

Created on September 21, 2020

Start designing with a free template

Discover more than 1500 professional designs like these:

Memories Presentation

Pechakucha Presentation

Decades Presentation

Color and Shapes Presentation

Historical Presentation

To the Moon Presentation

Projection Presentation

Transcript

Computational Thinking

Operator

Is an expression that allows us to make arithmetic, relational or logic operations.

Operators Structure data1 operator data2 = result result = data1 operator data2

Math

Computer Science

Lorem Ipsum

ArithmeticOperators

Are those that uses mathematical operations to obtain real numbers.

**

**

Different types of divisions: result = 10 / 6 , result = 1.67result = 10 // 6, result = 1result = 10 % 6, result = 4

Arithmetic Operators

//

**

**

Arithmetic Operators PrecedencePEMDAS

Multiplication & Division

Parenthesis

Addition & Substraction

Exponents

Relational Operators

> Greater than

== Equal

< Lower than

!= Not equal

>= Greater or equal

Are those that compares two values in order to have a boolean (true or false) value.

<= Lower or equal

Relational Operators

Logical Operators

Are those that evaluates two expressions in order to have a boolean (true or false) result.

Logical Operators

Lets try it!

PRECEDENCE

NOT

OR

NOT

AND

(4^2+10)*5-64 =

18<64 AND NOT 23>54

6>8 OR NOT 100<200

5-2<5^0 OR 10*2>5*2

5^2>6*4 AND 40-4<7*5

Conditional Structure

It means that you have another way to go through a solution. In other words, is like giving another ending to a story.

What is a condition?

Is a decision-making based on a possibility.

Tinkercad

Calculating the volume of a sphere.

Algorithm: Step 1. Start Step 2. Get the radius value in variable rarius. Step 3. Save the value of the constant Π in the pi constant. Step 4. Calculate the volume of the sphere with the following formula: volume = 4/3Πr^3 Step 5. Show the volume obtained. Step 6. End

Created by:

Martha I. Esparza Martínez, Georgina Méndez Castro, Octavio Muñoz Román y Diana Y. Montero Mijares & Galia Barragán. 2020

¡Thanks!