Lesson Overview
Students will begin using Evaluation Blocks to explore the concept of math as a language, and more specifically, a programming language. By composing arithmetic expressions with Evaluation Blocks, students will be able to visualize how expressions follow the order of operations.
Lesson Objectives
Students will:
Convert arithmetic expressions to and from code.
Use Evaluation Blocks to reflect the proper order of operations for an expression.
Anchor Standard
Common Core Math Standards
- A.SSE.1: Interpret expressions that represent a quantity in terms of its context.
Additional standards alignment can be found at the end of this lesson
Teaching Guide
Materials, Resources, and Prep
For the Student
- Evaluation Blocks Worksheet (in the student workbook)
For the Teacher
Getting Started
1) Vocabulary
This lesson has five new and important words:
- Evaluation Block - a block of code that represents the structure of an expression
- Evaluate - perform the computation in an expression, producing an answer
- Expression - a computation written in the rules of some language (such as arithmetic, code, or an Evaluation Block)
- Function - a mathematical object that takes in some inputs and produces an output
- Value - a specific piece of data, like 5 or "hello"
2) Introduction
A mathematical expression is like a sentence: it’s an instruction for doing something. The expression 4 + 5 tells us to add 4 and 5. To evaluate an expression, we follow the instructions in the expression. The expression 4 + 5 evaluates to 9.
Sometimes, we need multiple expressions to accomplish a task. If you were to write instructions for making a sandwich, it could matter very much which came first: melting the cheese, slicing the bread, spreading the mustard, etc. The order of functions matters in mathematics, too. If someone says "four minus two plus one," they could mean several things:
- Subtract two from four, then add one: (4 - 2) + 1
- Add two and one, and subtract the result from four: 4 - (2 + 1)
Depending on which way you read the expression, you might have very different results! This is a problem, because we often use math to share calculations between people. For example, you and your cell phone company should agree upfront on how much you will pay for sending text messages and making calls. Different results might mean that your bill looks wrong. We avoid problems by agreeing on the order in which to use the different operations in an expression. There are two ways to do this:
- We can all agree on an order to use
- We can add detail to expressions that indicate the order
Mathematicians didn’t always agree on the order of operations, but now we have a common set of rules for how to evaluate expressions. When evaluating an expression, we begin by applying the operations written at the top of the pyramid (multiplication and division). Only after we have completed all of those operations can we move down to the lower level. If both operations are present (as in 4 - 2 + 1), we read the expression from left to right, applying the operations in the order in which they appear.
Evaluation Blocks provide a visual way to indicate the order of operations in an expression.
All Evaluation Blocks follow three rules:
- Rule 1: Each block must have one function, which is displayed at the top of the block.
- Rule 2: The values for that function are placed below, in order from left to right.
- Rule 3: If a block contains another block as a value, that inner block must be evaluated before the outer block.
Before students get started on the computers, you can have them work through the evaluation blocks worksheet in the student workbook.
Activity: Evaluation Blocks
3) Online Puzzles
The programming language you are going to learn uses Evaluation Blocks to visually represent mathematical functions. Each block of code is either a Function, or a Value - head to CS in Algebra Stage 2 in Code Studio to get started programming.
Standards Alignment
Common Core Math Standards
- 5.OA.1 - Use parentheses, brackets, or braces in numerical expressions, and evaluate expressions with these symbols.
- 5.OA.2 - Write simple expressions that record calculations with numbers, and interpret numerical expressions without evaluating them. For example, express the calculation “add 8 and 7, then multiply by 2” as 2 × (8 + 7). Recognize that 3 × (18932 + 921) is three times as large as 18932 + 921, without having to calculate the indicated sum or product.
- 6.NS.5 - Understand that positive and negative numbers are used together to describe quantities having opposite directions or values (e.g., temperature above/below zero, elevation above/below sea level, credits/debits, positive/negative electric charge); use positive and negative numbers to represent quantities in real-world contexts, explaining the meaning of 0 in each situation.
- 6.NS.6 - Understand a rational number as a point on the number line. Extend number line diagrams and coordinate axes familiar from previous grades to represent points on the line and in the plane with negative number coordinates.
- 6.NS.8 - Solve real-world and mathematical problems by graphing points in all four quadrants of the coordinate plane. Include use of coordinates and absolute value to find distances between points with the same first coordinate or the same second coordinate.
- 6.EE.2 - Write, read, and evaluate expressions in which letters stand for numbers.
- A.SSE.1 - Interpret expressions that represent a quantity in terms of its context.
- A.SSE.2 - Use the structure of an expression to identify ways to rewrite it. For example, see x4 – y4 as (x2)2 – (y2)2, thus recognizing it as a difference of squares that can be factored as (x2 – y2)(x2 + y2).
- A.SSE.4 - Derive the formula for the sum of a finite geometric series (when the common ratio is not 1), and use the formula to solve problems. For example, calculate mortgage payments.★
- A.REI.1 - Explain each step in solving a simple equation as following from the equality of numbers asserted at the previous step, starting from the assumption that the original equation has a solution. Construct a viable argument to justify a solution method.
Common Core Math Practices
- MP.1 - Make sense of problems and persevere in solving them.
- MP.2 - Reason abstractly and quantitatively.
- MP.3 - Construct viable arguments and critique the reasoning of others.
- MP.4 - Model with mathematics.
- MP.5 - Use appropriate tools strategically.
- MP.6 - Attend to precision.
- MP.7 - Look for and make use of structure.
- MP.8 - Look for and express regularity in repeated reasoning.