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
Another constructor int s int s int s to initialize the member variables. Initialize your variables using the following data SideA SideB SideC
ComputeArea int s int s int s returns the area of the triangle SideA SideB SideC
IsSquare int s int s int s 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 XC 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
