Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming Project 2 100 points Submission Instructions In Eclipse, create a Java Project called Project2. Remember to enter a comment with your name, the assignment

image text in transcribed
image text in transcribed
Programming Project 2 100 points Submission Instructions In Eclipse, create a Java Project called Project2. Remember to enter a comment with your name, the assignment number, the date, the file name, and a short description of what the file does at the top of each class When you are finished, compress (zip) your Java project folder and upload your project to Canvas before the due date. You can do this in Eclipse by selecting Export from the File menu. Open the General folder and select Archive File. Click Next, select your project, and Browse to the location you would like to save your zip file. Please name your zip file YourLastNameYourFirstNameProject2. Remember that late assignments are not accepted in this course. See the syllabus for more information. Assignment 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 you 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 your method. static void spiral(centerx, centerY, maxRadius, numcoils, num Segments Per Coil) This will draw a spiral centered at (x, y). The parameter maxRadius determines how large the spiral will be. The parameter num Coils indicates the number of coils (oops) 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions