Problem 2: Triangle Recognition (If, If … Else)
Create Triangle Recognition on the right side of the app. It should ask the user to enter three points. You will need six text fields – three pairs of two. Each pair will represent a point (x, y). The coordinates of the points should be double variables. Using these points, the app should communicate to the user if the points form a triangle. Once it is confirmed that the points form a triangle the app needs to identify the type of triangle that was formed: Equilateral, Scalene, Isosceles, Right-Angled, Obtuse, or any combination. It has to communicate this to the user. Then it has to print the length of the sides of the triangle using the distance formula.