Question: Write java code Connect the Dots Write a program that will draw a polygon on the screen based on coordinates provided in a file dots.txt.

Write java code

Connect the Dots Write a program that will draw a polygon on the screen based on coordinates provided in a file dots.txt. Your program should read in the coordinates from the file and call the .addPoint( x,y) function as many times as there are coordinates in the file. Your program should draw a unique polygonal shape consisting of at least 25 pairs of coordinates. You are expected to submit both the java file to draw the polygon as well as the dots.txt file so that you can design your own unique shape.

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!