Question: Problem 4: Triangles In this problem, you have to create a class representing a triangle. A triangle is created specifying the lengths of its 3
Problem 4: Triangles
In this problem, you have to create a class representing a triangle. A triangle is created specifying the lengths of its 3 sides; for instance,
Triangle(3, 4, 5)
creates a triangle with sides 3, 4, 5.
The class has to implement the following methods.
is_well_formed: Returns True if the triangle is well-formed, and false otherwise. A triangle is well formed if, for edges of length ,, , you have:
+
File Edit View Insert Runtime Tools Help All changes saved + Code + Text Problem 4: Triangles In this problem, you have to create a class representing a triangle. A triangle is created specifying the lengths of its 3 sides; for instance, Triangle(3, 4, 5) creates a triangle with sides 3, 4, 5. The class has to implement the following methods. 1s_well_formed: Returns True if the triangle is well-formed, and false otherwise. A triangle is well formed if for edges of length x..., you have: * Sy+ 2 y perimeter: Returns the perimeter of the triangle.
area: Returns the area of the triangle, using Heron's formula.
We give you the class skeleton, and you have to complete the methods.



the code im running says that the triangle is undefined. Also the test should say success under them to prove they are right
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
