Homework 1: Flags

Due: Tuesday January 28, 2020 at 9:00PM EST.

Setup and Handin

Setup

Handin

Helpful Things

Documentation

This guide will help you get started with Pyret!

The Pyret Documentation is accessible from the Pirate button in the top left corner of code.pyret.org.

For this assignment, you will find the image documentation useful. We recommend briefly browsing this documentation before working on these problems!

Staff Assistance

Your friendly TAs and Professor are here to help with this assignment! You can find our schedule for office hours here.

What we will look for when grading

The Assignment

It’s a sticky Sunday afternoon in Nevada and Moses is tuckered out. He’s herded the cattle, polished his saddle, and whitewashed the ol’ fence. Despite his productivity, Moses is feeling awfully small in this big world of ours. To find some peace, Moses wants to learn a bit more about Earth’s cultures by looking at countries’ flags.

You will help Moses by writing code for four flags for this assignment:

  1. Madagascar
  2. Turkey
  3. Jamaica
  4. Greenland

Set up your code so that the four flags are output on the right hand side when we press the run button. Make sure nothing else is output (no sub-images, numbers, strings, or otherwise).

When you are done, download the file and submit it following the instructions above.

The Flags

Madagascar
Madagascar flag

Turkey
Turkey Flag

Jamaica
Jamaica Flag

Greenland
Greenland Flag

Theme Song

Wavin’ Flag by K’NAAN


Brown University CSCI 0111 (Spring 2020)
Do you have feedback? Fill out this form.