Please help me recorect it. Thanks Partial Question 21 214 pts Consider a method
ID: 3604041 • Letter: P
Question
Please help me recorect it. Thanks Partial Question 21 214 pts Consider a method print TriangleType that accepts three integer arguments representing the lengths of the sides of a triangle and prints the type of triangle that these sides form. public static vold printTriangletype(int a, int b, Int ) The three types are equilateral, isosceles, and scalene. An equilateral triangle has three sides of the same length, an isosceles triangle has two sides that are the same length, and a scalene triangle has three sides of different lengths. However, certain integer values (or combinations of values) would be ilegal and could not repre sent the sides of an actual triangle. What are these values? (In other words, how would you describe the precondition(s) of the print TriangleType method?) Which of the following are precondition(s) that are appropriate for this method? Check all that apply. tam id 24531037 028/2017 Mdtem Exam Fail Java 01 Section 01 No side's length may exceed the sum of any two other side lengths The three side lengths must be positive integers No side's length may exceed the sum of any two other side lengths The sum of the sides' lengths must be an even number All sides must have the same length Quiz Score: 30 out of 50Explanation / Answer
From selected pre conditions #1 and #3 are same and correct.
By Triangle Inequality Theorem: The sum of the lengths of any two sides of a triangleis greater than the length of the third side.
#2 states length of all three sides must be positive, this is also correct.
Hence the selected options are correct.