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