BYU logo Computer Science

To start this assignment, download this zip file.

The following guide pages cover material needed for this assignment:

Homework 2c — Decomposition

1. Barcodes

For this problem, Bit wants to finish the barcodes. There are two starting worlds:

The first row has some blue squares

The first row has some blue squares

The finishing worlds should look like this:

The blue squares are turned to blue columns

The blue squares are turned to blue columns

The starter code is in barcodes.py.

2. Soccer fields

For this problem, Bit wants to plant grass in the soccer fields. There are two starting worlds:

Three rectangular soccer fields

Four rectangular soccer fields

Bit’s job is to put green inside each soccer field:

Soccer fields filled with grass

Soccer fields filled with grass

The starter code is in soccer_fields.py.

3. Bit-a-thon

Bit is participating in a triathalon! Help Bit climb down a mountain, swim across the river, and then cycle to the finish line. There are two race courses:

a mountain going down, then a river, then a flat street

a mountain going down, then a river, then a flat street

Bit should finish the course, tracing the running path in green and the cycling path in red:

a path following the mountain down and the street to the right

a path following the mountain down and the street to the right

The starter code is in bitathon.py.

Grading

ActivityPoints
barcodes.py4
soccer_fields.py8
bitathon.py8

Manual grading will focus on decomposition and fluency (i.e. appropriate use of themes presented so far in class).