Examlex

Solved

Say That You Want to Construct a Tiny Drawing Program

question 16

Essay

Say that you want to construct a tiny drawing program, where the objects are defined using line segments. One might use the rubber-banding ideas presented in this chapter to define the endpoints of line segments, hooking them together into a polyline. One might provide a button that turns a polyline into a polygon. If this approach is taken, what would be a good way to represent the data involved in this program: the points, the line segments, the polylines, the polygons?


Definitions:

Pumpkin Pie

A traditional American dessert made from a spiced pumpkin-based custard filling in a pie crust, often served during fall and Thanksgiving.

Want

A desire for goods or services that are not necessary for basic survival but are perceived as desirable.

Utility

In economics, refers to the total satisfaction received from consuming a good or service.

Satisfaction

The fulfillment or gratification of a desire, need, or appetite.

Related Questions