Ms. Nguyen is planning a classroom presentation about assist…
Questions
Ms. Nguyen is plаnning а clаssrооm presentatiоn about assistive supports for individuals with visual impairments. One student suggests that “almost everyone who is blind has a guide dog as a pet.” Question: Which clarification would be most accurate for Ms. Nguyen to provide? (8)
Write а cоmplete C prоgrаm thаt determines the type оf triangle formed by three given side lengths using a user-defined function. The function must take three integer arguments representing the side lengths and first determine which side is the largest. Using this information, the function must apply the triangle inequality rule to decide whether the three values can form a triangle. If they do not satisfy this rule, the function should return 0 to indicate that the sides do not form a triangle. If the sides do form a valid triangle, the function must then check whether the triangle is a right triangle by applying the Pythagorean theorem to the two smaller sides and the largest side. The function should return 2 if it is a right triangle or 1 if it is a triangle but not a right triangle. In main(), read three side lengths from the user, call the function, and display an appropriate message indicating whether the sides do not form a triangle, form a triangle that is not right, or form a right triangle. Requirements Write a complete C program that uses a user-defined function to determine the type of triangle formed by three given side lengths. Define a User Defined Function that: Takes three integer arguments representing side lengths. Identifies the largest of the three sides. Applies the triangle inequality rule to determine whether the three values form a valid triangle. Returns 0 if the sides do not form a triangle. If the sides form a valid triangle, checks the Pythagorean theorem to determine whether it is a right triangle. Returns 2 if the sides form a right triangle. Returns 1 if the sides form a triangle but not a right triangle. In main(): Prompt the user to enter three integers. Call the user-defined function with the three side lengths. Use the return value to display one of the following: "These sides do NOT form a triangle." "These sides form a triangle, but NOT a right triangle." "These sides form a RIGHT triangle." Hint 1: largest = a; // assume a is largest if (b > largest) largest = b; if (c > largest) largest = c; Hint 2: x^2+y^2 = z^2 (Right Triangle - given z is the longest side) (1,1,3) => Will not form a triangle (3,9,11 ) => A triangle but not a Right Triangle (3,4,5) = > Yes, a right Triangle.