Question: Problem 1. (Great Cincle Distance) Write a program called ereatcirele jnva that accepts x1 (double), yi (double), x2 (double), and y2 (double) as command-line arguments
Problem 1. (Great Cincle Distance) Write a program called ereatcirele jnva that accepts x1 (double), yi (double), x2 (double), and y2 (double) as command-line arguments representing the latitude and longitude (in degrees) of two points on earth, and writes to standard output the great-circle distance (in km ) between the two points, given by the formula d=6359.83arccos(sin(x1)sin(x2)+cos(x1)cos(x2)cos(y1y2))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
