Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to do this on JAVA ? MyTriangle MyPoint -v1:MyPoint -v2:MyPoint -v3:MyPoint +MyTriangle(x1:int,yl:int, -x:int vertices -y:int x2:int,y2:int,x3:int, MyTriangle[v1-(x1,y1), v2-(x2,y2),v3-(x3,y3)] y3:int) +MyTriangle (v1:MyPoint, .-' Use MyPoint's

image text in transcribed

How to do this on JAVA ?

MyTriangle MyPoint -v1:MyPoint -v2:MyPoint -v3:MyPoint +MyTriangle(x1:int,yl:int, -x:int vertices -y:int x2:int,y2:int,x3:int, "MyTriangle[v1-(x1,y1), v2-(x2,y2),v3-(x3,y3)]" y3:int) +MyTriangle (v1:MyPoint, .-' Use MyPoint's distance) to compute the length of the edge:s v2:MyPoint, v3:MyPoint) +toString():String +getPerimeter():double +getTvpe(): String L- Equilateral" or "Isosceles" or "Scalene

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

What is fraud examination?

Answered: 1 week ago

Question

List and describe three behavioral leadership theories.

Answered: 1 week ago