Assignment 62 - Flags

Example Output

Learning Outcomes

  1. Loops
  2. Visualization

Goals

To create visual representations of national flags using color grids.

Description

In this assignment, you will create visual representations of the national flags of Germany and France. You will use the ColorGrid class to define the colors for each flag and visualize them.

Tasks

  1. Implement the createGermanFlag method to populate a ColorGrid with the colors of the German flag: black, red, and yellow.
  2. Implement the createFranceFlag method to populate a ColorGrid with the colors of the French flag: blue, white, and red.
  3. Visualize each flag

Extensions

Students can try out different flags to explore various designs and color combinations.

Help

For C++

Bridges documentation

Color documentation

ColorGrid documentation

For Java

Bridges documentation

Color documentation

ColorGrid documentation

For Python

Bridges documentation

Color documentation

ColorGrid documentation