So, I've been trying to create these 2 programs for 4 hours straight. Can someone help me??
1. Create a program that accepts input integers x and y which state the coordinates of the point <x, y>. Declare a boolean variable that will be true if the point is located on the X or Y axis.
** instructions: just use a logical operator, not using a case analysis scheme
2. Create a program that accepts input 4 integer numbers x1, y1, x2, y2 which state 2 points, namely <x1, y1> and <x2, y2>. Calculate the distance between the two points.
** instructions: do not use record type data