Distance.java


Below is the syntax highlighted version of Distance.java.


/*************************************************************************
 *  Name:
 *  Login:
 *  Precept:
 *
 *  Compilation:  javac Distance.java
 *  Execution:    java Distance x y
 *  
 *  Print the distance from (x, y) to the origin, where x and y
 *  are integers.
 * 
 *  % java Distance 3 4
 *  distance from (3, 4) to (0, 0) = 5.0
 *
 *  Web Exercise 1.2.1
 *************************************************************************/

public class Distance {
    public static void main(String[] args) {
        // input point coordinates
        int x = Integer.parseInt

        
        // compute distance
  
        
  
        // output distance
  
  
    }   
}