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
Get step-by-step solutions from verified subject matter experts
