U2L2- Operators and Expressions

Remarks
Computer science impacts all aspects of our society in different ways.

In many cases, computer science has significantly changed how things are done and improved how people and businesses operate.
1 / 18
suivant
Slide 1: Diapositive
Ap csa10th Grade

Cette leçon contient 18 diapositives, avec quiz interactifs et diapositives de texte.

time-iconLa durée de la leçon est: 45 min

Éléments de cette leçon

Remarks
Computer science impacts all aspects of our society in different ways.

In many cases, computer science has significantly changed how things are done and improved how people and businesses operate.

Slide 1 - Diapositive

Share the example of computer science in business.

Slide 2 - Question ouverte

What is an arithmetic operator?
An arithmetic operator is a mathematical function that takes two operands and performs a calculation on them. They are used in common arithmetic and most computer languages contain a set of such operators that can be used within equations to perform a number of types of sequential
 calculation.

Slide 3 - Diapositive

Where did you see operators before? How did you use them?

Slide 4 - Question ouverte

code.org
Please do level 1: Predict: Evaluating Expressions

Slide 5 - Diapositive

What did you notice and wonder about the code in this program?

Slide 6 - Question ouverte

Define operand and expression.

Slide 7 - Question ouverte

explain how the value and type of the operand impact how the expression is evaluated.

Slide 8 - Question ouverte

demonstrate evaluating expressions and storing the value in a variable.

Slide 9 - Question ouverte

When would the mod operator be useful?

Slide 10 - Question ouverte

code.org
Please do level 2: Investigate: Exploring Expressions

Slide 11 - Diapositive

What value is the result of evaluating this expression?
(5 * 3 - 4 / 2 ) % 3
A
4
B
3
C
1
D
2

Slide 12 - Quiz

What did you learn from each other?

Slide 13 - Question ouverte

How do these ideas and thoughts contribute to your identity as a software engineer?

Slide 14 - Question ouverte

How was this lesson
great
good
hard
very hard

Slide 15 - Sondage

Vocab
expression: a combination of data and operators that evaluates to a single value
operand: the data that is operated on
compound expression: a combination of expressions

Slide 16 - Diapositive

vocab
compound assignment operator: shortcut syntax (+=, -=, *=, /=,
 %=) to perform an operation (+, -, *, /, or %) on both operands and store the result into the variable on the left
ArithmeticException: an error caused by dividing by zero
truncate: to cut off data from the end

Slide 17 - Diapositive

hw
level 3
unit guide
extra practice

Slide 18 - Diapositive