1
Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: April 16, 2012 before the class
Project: Dragging Points on a Circle
CSCI 1302 Advanced Programming Principles
Armstrong Atlantic State University
Draw a circle with three random points on the circle. Connect the points to form a triangle. Display the
angles in the triangle. Use the mouse to drag a point along the perimeter of the circle. As you drag it, the
triangle and angles are redisplayed dynamically.
65
55
60
Here is the formula to compute angles:
Submit to LiveLab as PExercise15_01
Bring screen shots to the class.
Submit the screen shots along with a check list of the following steps.
1. Can your program display a circle in the center of the frame?
2
7. Can your program drag a small circle that has been pressed?
8. Can your program drag a small circle along the perimeter of the circle? (Hint:
Ignore the mouse drag if it is not along the perimeter of the circle.)