introduction to object oriented programming
Consider a right triangle with vertices at (0,0), (0, ð‘¦1), and (ð‘¥2, 0) as shown in the figure below. Suppose you are given the coordinates of a test point (ð‘¥, ð‘¦). Write a program that prompts the user to enter ð‘¦1, ð‘¥2,ð‘¥, and 𑦠and then checks if the test point is within the triangle. (If it is on one of the edges of the triangle, it is also considered to be within the triangle.) The coordinates of the vertices and test points may be any real numbers, including negative numbers.
Submit your source code in a file named InTriangle.java!