Assignemnt 83 and Xs And Ys

Code

    /// Name: Xinting Chen
    /// Period: 7
    /// Program Name: Xs And Ys
    /// File Name: XsAndYs.java
    /// Date Finished: 2/25/2016
  
        import java.util.Scanner;
        public class XsAndYs
        {
            public static void main( String[] args )
            {
                System.out.println("x" + "\t" +  "Y");
                System.out.println("------------------------");
                
                for (double x= -10; x<= 10; x= x + .5)
                {
                    double y= x * x;
                    System.out.println(x + "\t" +  y);
                }
            }
        }
    

Picture of the output

Assignment 83