public class EvenSumClient{
public static void main(String[]args){
int a0 = Integer.parseInt(args[0]);
int a1 = Integer.parseInt(args[1]);
boolean result=false;
// ?????
System.out.printf("\n\n\tSum of %d and %d both even and positive: %s"
, a0,a1, result);
System.out.printf("\n\n");
}
}
fyi, this computation tests whether the three numbers could be valid lengths fo the sides of some triangle.
sin(2t) + sin(3t)
Now, write a program that takes four double command line arguments -- lat1,lng1, lat2,lng2-- (the latitude and longitude, in degrees) of two points on the earth's surface and prints the great circle distance between them. The great circle distance, measured in nautical miles, is calculated by the following equation:
60 arccos(
sin(lat1)sin(lat2)
+
cos(lng1)cos(lng2)cos(lng1-lng2)
)