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!
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now