Question: 3. (30 pts) Consider the following code. struct Triangle float side1; float side2; float side3) t1, t2; enum Boolean (FALSE, TRUE enum Boolean isEquilateral(struct Triangle


3. (30 pts) Consider the following code. struct Triangle float side1; float side2; float side3) t1, t2; enum Boolean (FALSE, TRUE enum Boolean isEquilateral(struct Triangle * triangle); (15 pts) Implement the function isEquilateral which returns enum value TRUE if the given triangle is equilateral and enum value FALSE otherwise. (Hint: in the real world, no two float values are exactly the same. If the difference of two float values is between -0.0001 and 0.0001, consider "almostEqual" and neglect the minor difference.) a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
