Question: For this project we will create a class that add some extra features to StdDraw without modifying StdDraw itself. Our class will have static methods,

 For this project we will create a class that add some

extra features to StdDraw without modifying StdDraw itself. Our class will have

static methods, static variables, and constants Create a new class called UnStdDraw.

For this project we will create a class that add some extra features to StdDraw without modifying StdDraw itself. Our class will have static methods, static variables, and constants Create a new class called UnStdDraw. This class should be put in a package named unstddraw. The methods vou will write are: static void filledRegularPolygon(centerX, centerY, radius, numSides) This method will draw a filled regular polygon centered at (x, y). Remember that a regular polygon has equal side lengths and equal angles. Hint: You may find it useful to use the StdDraw.filledPolygon method in your method static void spiral(centerX, centerY, maxRadius, numCoils, numSegmentsPerCoil) This will draw a spiral centered at (x, y). The parameter maxRadius determines how large the spiral will be. The parameter numCoils indicates the number of coils (loops) in the spiral. You will draw the spiral using line segments. The numSegments parameter indicates how many line segments should be used to draw each coil

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!