CEMC Banner

Problem of the Week
Problem B
Shelby’s Code

Shelby is using block coding to draw different shapes.

  1. Her first program is shown. What shape will be drawn after running this program?

    A alternative format for the first program
follows.

  2. Using the given blocks, write a program to draw the same shape as Shelby’s program, using fewer blocks. Notice that some blocks contain an empty box to be filled with a number.

    Blocks for part b.

    Move forward empty box steps.

    Move right empty box degrees.

    Repeat empty box times. This block   is shaped so that it can wrap around other blocks.

    Start of program for part b.

    Two blocks in a column. The top block has text on start. The bottom box has text pen down.

  3. Using the given blocks, write a program to draw the following shape:

    The outline of a plus sign shape. The interior of the shape is formed by a row of three squares and a column of three squares meeting at the centre.

    You may use a block more than once.

    Blocks for part c.

    Move forward empty box steps.

    Turn right empty box degrees.

    Turn left empty box degrees.

    Repeat empty box times. This block   is shaped so that it can wrap around other blocks.

    Start of program for part c.

    Two blocks in a column. The top block has text on start. The bottom box has text pen down.


Themes: Computational Thinking, Geometry & Measurement