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!

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 deadlines

Order Paper Now
 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.