Filling a rectangular domain with random shapes class designed in HW2

computer science


Filling a rectangular domain with random shapes


This assignment builds on the Shape class designed in HW2. In this assignment (HW3), you

will modify the implementation of the Shape class that was developed in HW2, and implement

a class Domain representing a rectangular area in the x-y plane, with functions that draw a

visual representation of the domain as a scalable vector graphics (svg) file. The svg file can be

visualized using a browser such as Firefox, Safari, Chrome or Internet Explorer.

The domain is a rectangular array of cells that can be occupied by shapes. The goal of the

assignment is to implement a program that places randomly selected shapes at random positions

on an arbitrary rectangular domain until the domain is full, and creates a graphical representation

of the domain.

Related Questions in computer science category