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
next
Slide 1: Slide
Ap csa10th Grade

This lesson contains 18 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 45 min

Items in this lesson

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 - Slide

Share the example of computer science in business.

Slide 2 - Open question

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 - Slide

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

Slide 4 - Open question

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

Slide 5 - Slide

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

Slide 6 - Open question

Define operand and expression.

Slide 7 - Open question

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

Slide 8 - Open question

demonstrate evaluating expressions and storing the value in a variable.

Slide 9 - Open question

When would the mod operator be useful?

Slide 10 - Open question

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

Slide 11 - Slide

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 - Open question

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

Slide 14 - Open question

How was this lesson
great
good
hard
very hard

Slide 15 - Poll

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 - Slide

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 - Slide

hw
level 3
unit guide
extra practice

Slide 18 - Slide