subject

Write a class called line that represents a line segment between two points. your line objects should have the following methods: public line(point p1, point p2) constructs a new line that contains the given two points. public point getp1() returns this line's first endpoint. public point getp2() returns this line's second endpoint. public string tostring() returns a string representation of this line, such as "[(22, 3), (4, 7)]".

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 04.02.2019 18:48
Communication is the exchange of information. true or false?
Answers: 1
question
Computers and Technology, 01.02.2019 06:10
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
question
Computers and Technology, 29.01.2019 03:41
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 27.01.2019 11:41
What is the difference between the internet and the world wide web?
Answers: 1
You know the right answer?
Write a class called line that represents a line segment between two points. your line objects shoul...
Questions
Questions on the website: 6644838