Question: Part b- Eclipse/Java For this question you must write a java class called Triangle and a client class called TriangleClient. The partial Triangle class is

 Part b- Eclipse/Java For this question you must write a java

Part b- Eclipse/Java For this question you must write a java class called Triangle and a client class called TriangleClient. The partial Triangle class is given below. (For this assignment, you will have to submit 2 java files: one for the Triangle class and the other one for the TriangleClient class. a Triangle class that stores the 3 sides of a triangle public class Triangle t private int sidel; private int side2; private int side3; //constructs a new Triangle with the given sidel, side2 and side3 public Triangle (int sidel, int side2, int side3) // returns the fields' values public int getsidel O public int getSide2 public int getSide3 // returns the string representation of the triangle /1 such as (side1: 10, side2: 10, side3: 15 public String tostring Write an instance method called isEquilateral that determines whether a triangle is equilateral. If all sides are equal then its equilateral traingle Write another instance method called isIsoceles0 that will be placed inside the Triangle class. This method determines whether a triangle is isosceles. Any (and at least) two sides must be equal. Write another instance method called isScalene0 that will be placed inside the Triangle class. This method determines whether a triangle is scalene. No two sides are equal. Write the client class TriangleClient that asks the user to enter the three side and creates an object of class Triangle and uses the data entered to initialize its size. Print out Triangle object. Then print out if it is an equilateral triangle or an isosceles triangle or scalene

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!