For every appearance of the shapes image at a new location


Random Shape

Create a program that, for a given number of times, displays a shape (e.g., a triangle, circle, etc.) at random locations on the drawing canvas. For example, the user may specify that the shape should be displayed 5 times, or 7 times, etc. For every appearance of the shape's image at a new location, the previous shape's image should disappear - that is, at any given time there should be only one shape displayed on the canvas.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: For every appearance of the shapes image at a new location
Reference No:- TGS01541573

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)