Assignment 1: Flags

Assigned: Thursday, 9 September
Due: Thursday, 16 September, 11:59 p.m.

Learning goals

Getting started

  1. Open code.pyret.org and ensure it's connected to your Google account.

  2. Make a new file named asmt1.arr.


Note: Assignments will be graded anonymously, so don't include your name.

Help!

Assignment

Write code to generate four flags:

  1. Madagascar

    Flag of Madagascar

  2. Turkey

    Flag of Turkey

  3. Jamaica

    Flag of Jamaica

  4. Greenland

    Flag of Greenland

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

Grading criteria

When we grade the assignments, we will be looking for accuracy in

We do not care about

For instance, you can use “green” as the color name even though it produces a brighter green than on these flags. If you want to be more accurate, a comprehensive list of the color names Pyret understands can be found here.

For this assignment, we won't be grading on style. However, you should start familiarizing yourself with good Pyret style, which will be graded on future assignments.

Submit assignment

  1. Download your file (FileDownload) and ensure it's named asmt1.arr.

  2. Upload your assignment on Gradescope.

Note: You can submit as many times as you want before the deadline. Only your latest submission will be graded.

Acknowledgments

This assignment is adapted from Kathi Fisler and colleagues at Brown University.