Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 371 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 15 May 2017 My Price 6.00

Write a class called Line that represents a line segment

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)]".

Answers

(8)
Status NEW Posted 15 May 2017 05:05 PM My Price 6.00

-----------

Attachments

file 1494869716-Answer.docx preview (118 words )
W-----------rit-----------e a----------- cl-----------ass----------- ca-----------lle-----------d L-----------ine----------- th-----------at -----------rep-----------res-----------ent-----------s a----------- li-----------ne -----------seg-----------men-----------t b-----------etw-----------een----------- tw-----------o P-----------oin-----------ts.----------- Yo-----------ur -----------Lin-----------e o-----------bje-----------cts----------- sh-----------oul-----------d h-----------ave----------- th-----------e f-----------oll-----------owi-----------ng -----------met-----------hod-----------s: ----------- pu-----------bli-----------c L-----------ine-----------(Po-----------int----------- p1-----------, P-----------oin-----------t p-----------2) ----------- Co-----------nst-----------ruc-----------ts -----------a n-----------ew -----------Lin-----------e t-----------hat----------- co-----------nta-----------ins----------- th-----------e g-----------ive-----------n t-----------wo -----------Poi-----------nts-----------. -----------pub-----------lic----------- Po-----------int----------- ge-----------tP1-----------() ----------- Re-----------tur-----------ns -----------thi-----------s L-----------ine-----------’-----------s f-----------irs-----------t e-----------ndp-----------oin-----------t. ----------- pu-----------bli-----------c P-----------oin-----------t g-----------etP-----------2()----------- R-----------etu-----------rns----------- th-----------is -----------Lin-----------eâ€-----------™s -----------sec-----------ond----------- en-----------dpo-----------int-----------. -----------pub-----------lic----------- St-----------rin-----------g t-----------oSt-----------rin-----------g()----------- R-----------etu-----------rns----------- a -----------Str-----------ing----------- re-----------pre-----------sen-----------tat-----------ion----------- of----------- th-----------is -----------Lin-----------e, -----------suc-----------h a-----------s &-----------quo-----------t;[-----------(22-----------,
Not Rated(0)