CS476/576
Assignment #2
Due Midnight, Wednesday Nov 2, 2011
Use Xlib/Motif to implement the
following program:
NAME
drcs – draw random circles and squares
SYNOPSIS
drcs
DESCRIPTION
The program presents a motif interface
for drawing random sizes circles and squares in two separate areas.
The interface
has the following components:
ü Drawing area: You may
use either two separate canvases or one canvas divided into two, one for drawing
random circles and the other for drawing random squares.
ü Two Clear Buttons: One for clearing the
circles and the other for clearing the squares.
ü Exit Button: Exits the programs with the choice to confirm/cancel.
A
sample implementation is under: /home/cs476/public_html/fall11/assignments/a2/wahab/drcs