Java code Two Problems isRightTri() method Write a method that takes lengths of three sides of a triangle and determines
Posted: Wed Apr 27, 2022 3:37 pm
Java code
Two Problems isRightTri() method
Write a method that takes lengths of three sides of a triangle
and determines if the triangle is right (one of its angles is 90
degrees). It returns true if the triangle is right and false if the
triangle is not right. Start coding with method header provided in
TwoMethodsA02.java. Keep in mind that lengths of the triangle sides
can be passed to the method in any possible order.
Use a Pythagorean theorem in your solution:
Comment each step
Two Problems isRightTri() method
Write a method that takes lengths of three sides of a triangle
and determines if the triangle is right (one of its angles is 90
degrees). It returns true if the triangle is right and false if the
triangle is not right. Start coding with method header provided in
TwoMethodsA02.java. Keep in mind that lengths of the triangle sides
can be passed to the method in any possible order.
Use a Pythagorean theorem in your solution:
Comment each step