Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

IN C LANGUAGE ! without getch or fflash Assume each vertex is a pair of integer

ID: 3635496 • Letter: I

Question

IN C LANGUAGE ! without getch or fflash

Assume each vertex is a pair of integer coordinates. A triangle with vertices A, B, and C is a right triangle if d(A,B)2=d(B,C)2+d(A,C)2, where d(P1,P2) represents the distance between two points, P1 and P2. A, B, and C may be given in any order. Write a program and create a user defined function vertices that takes two points (x1,y2) and (x2y2) and returns the distance between them. Use the formula: The program will continue to process any number of triangles until a unique value is entered by the user to stop processing. Note: Using Loops and user defined functions is a must.

Explanation / Answer

http://pastebin.com/HkDw3QH9

Please check here for the code. And rate! Thanks :)