Code - play with the Scratch code
- The Scratch code below simulates this math exploration:
- Start with __ + __ = 8
- Repeat 6 times:
- Roll a number cube to get the first number
- Calculate the second number
- Plot the pair of numbers on the grid
- Record the pair of numbers in the table
- Change the values in the code and see how the graph changes.
|
Output
- The graph plots six random pairs of numbers that satisfy the number sentence __ + __ = 8.
- Why do the points line up when they are random?
- Why do we sometimes see less than 6 points?
- Set the sum to a different number to see effect.
|