1/31/00
COM1100 Winter2000 Yuhong Yin
4
Q15 from recitation 3
nWrite a function that will paint an arc (part of a circle). The arguments specify the center of the arc, the radius, the starting and ending angle. Use one degree angle increments. The coordinates of a point on a circle with the center (xcenter, ycenter), radius r, and angle a are:
nx = xcenter + radius * cosdeg(a);
ny = ycenter + radius * sindeg(a);