Create a Java program that allows the user to select different

mathematical functions on two points:

  • Euclidean Distance
  • Cityblock Distance
  • Chessboard Distance
  • Slope of Segment
  • Angle of Segment

Feel free to use any helpful Java Math functions:

Math.abs(x)

Math.max(x,y)

Math.min(x,y)

Math.sin(x)

Math.cos(x)

Math.tan(x)

Sample Solution

This question has been answered.

Get Answer