] > Assignment 1: Getting Started (Due: Th, April 3)

Assignment 1: Getting Started (Due: Th, April 3)

Note. The program assumes the following library of commands, and a screen having a coordinate system whose origin is at the upper-left corner.

rect id(x, y, width, height);

Rectangular box of dimensions ‘(width, height)’ at location ‘(x, y)’.

text id(x, y, "...");

Textual element of content ‘ "..." ’ at location ‘(x,y)

figure* id = { &id_1, &id_2, ... };

Grouping mechanism for rectangular boxes and textual elements.

      2    4    6   8   10
 ----|-|-|--|-|-|-|--|-|-|||X
 --
2--      ∙ (3,2)
 --
4--
 --
6--|

  Y