public class Archimedes { public static void main (String[] argv) { DrawTool.display (); DrawTool.setXYRange (-10, 10, -10, 10); DrawTool.drawMiddleAxes (true); // Radius: double r = 8; // Draw the circle. DrawTool.drawCircle (0,0,r); // Number of triangles to inscribe. int N = 6; // Interior angle of each. double angle = 2*Math.PI / N; // Initialize the variable that will accumulate the lengths // of edges that comprise the perimeter. double perimeter = 0; for (int i=0; i