Monday, 31 July 2017
Write a Java program to compute the distance between two points on the surface of earth. Distance between the two points [ (x1,y1) & (x2,y2)] d = radius * arccos(sin(x1) * sin(x2) + cos(x1) * cos(x2) * cos(y1 - y2)) Radius of the earth r = 6371.01 Kilometers
What's Related?

Write a Java program to print the ascii value of a given character.

Write a Java program to list the available character sets in charset objects.

Write a Java program to create and display unique three-digit number using 1, 2, 3, 4. Also count how many three-digit numbers are there.

Write a Java program to count the letters, spaces, numbers and other characters of an input string.
Write a Java program to reverse a string.
Write a Java program to compute the area of a polygon. Area of a polygon = (n*s^2)/(4*tan(π/n)) where n is n-sided polygon and s is the length of a side.
Home