Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started