/// Name: Afaf Nabeeha /// Period: 7 /// Program Name: Counting by Halves /// File Name: Halves.java /// Date Finished: 1/29/16 public class Halves public class Halves { public static void main( String[] args ) { System.out.println( "x" ); double x, y ; x = -10; System.out.println( "------" ); for ( y = 10; x <= y; x = x + 0.5 ) { System.out.println( x ); } } }Picture of the output