Question: In java. The first document will be your UML class diagram of the class Triangle. The second document will be your Triangle java class

"In java.
The first document will be your UML class diagram of the class Triangle.
The second document will be your Triangle java class file, which is the Triangle class definitions. Specified details are below!
The third document will be your complete java program to test your Methods using the definitions in the Triangle class.
Test requirements
Create the definition of the Triangle class that has the following properties
Draw the UML class diagram of the class Triangle based on the all the requirements below.
The name of the class is Triangle
The class TriangleType has three private member variables: SideA, SideB , and SideC all of type integer
A default constructor to finalize all variables to 0
Another constructor (int s1, int s2, int s3) to initialize the member variables. Initialize your variables using the following data (SideA =3, SideB =3, SideC =5)
ComputeArea (int s1, int s2, int s3)- returns the area of the triangle (1/2(SideA + SideB + SideC)),
IsSquare (int s1, int s2, int s3) returns a Boolean value if no sides of the triangle are of equal length and prints a message stating that the triangle is a Scalene.
Write the complete definition of the member methods of the class Triangle as described above.
Write a c XC19 omplete program to test your Methods using the Triangle class definitions as described in parts above"

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 Programming Questions!