CODING PUZZLES

[Solutions are shown after the puzzles]

CODING PUZZLE 1: Growing Patterns (Scratch)

Run the code at https://scratch.mit.edu/projects/964727477/editor .

You will see the list of numbers shown below.

This code represents the pattern shown below.

How would you edit the code to create each of the following lists of numbers?

Edit and run the code to test your predictions.


CODING PUZZLE 2: Growing Patterns (Python)

Go to https://cscircles.cemc.uwaterloo.ca/console .

Enter and run the code below.

You will see the list of numbers shown on the right.

This code represents the pattern shown below.

How would you edit the code to create each of the flowing lists of numbers?

Edit and run the code to test your predictions.


CODING PUZZLE 3: Plotting linear relations (Scratch)

Go to https://scratch.mit.edu/projects/556330557/editor to see and run the code below.


Alter the code to create each of the plots below.


SOLUTIONS

CODING PUZZLE 1


CODING PUZZLE 2


CODING PUZZLE 3

a/b/c