subject

Implement a class IrregularPolygon that contains an array list of Point2D. Double objects. The Point2D. Double class defines a point specified in double precision representing a location in (x, y) coordinate space. For example, Point2D. Double(2.5, 3.1) constructs and initializes a point at coordinates (2.5, 3.1).Use the following declarations as a starting point for your lab work. import java. awt. geom.*; // for Point2D. Doubleimport java. util. ArrayList; // for ArrayListimport gpdraw.*; // for DrawingToolpublic class IrregularPolygon{private ArrayList myPolygon; // constructorspublic IrregularPolygon() { }// public methodspublic void add(Point2D. Double aPoint) { }public void draw() { }public double perimeter() { }public double area() { }

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Which tab is used to change the theme of a photo album slide show? a. design b. view c. transitions d. home
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
question
Computers and Technology, 24.06.2019 17:50
Acontact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. write a program that first takes in word pairs that consist of a name and a phone number (both strings). that list is followed by a name, and your program should output that name's phone number.
Answers: 1
You know the right answer?
Implement a class IrregularPolygon that contains an array list of Point2D. Double objects. The Point...
Questions
Questions on the website: 13722362