At My Fingertips

Market Stall

In this activity you will compose a market stall, like those one can find in markets in towns around Switzerland and Europe.

Decompose the Graphic

Assume you have a friend who does not see the figure below:

Market Stall

Sure, you could say it's a market stall! But assume your friend is an alien and has not the slightest idea what a market stall is. Then you could describe it along the following lines:

At the top is an awning, consisting of dark and bright purple stripes. Each stripe is a vertical rectangle with a semicircle attached at the bottom. The stall has a brown table, almost as wide as the awning (it is two stripes less wide). The table has a thin lighter brown top, and a darker brown panel along the entire front. The stall is held together with a wooden bar on each side of the table, going from the very top (disappearing behind the awning) to the very bottom.

Compose the Program

Implement the market_stall function below, so it draws a stall like the one above.

Create auxiliary functions.

You can use the given colors and sizes (all the sizes are derived from the given height).

Loading...

This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.

Market Stall

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version b744b47 (Tue, 08 Oct 2024 16:30:14 GMT)