Assignemnt #11 Numbers And Math

Code

    /// Name: Tyler Hart
    /// Period: 5
    /// Program Name: Numbers And Math
    /// File Name: NumbersAndMath.java
    /// Date Finished: 9/8/2015
    
    public class NumbersAndMath
    {
    	public static void main( String[] args )
    	{
    		//Printing words
            System.out.println( "I will now count my chickens:" );
    
    		//Printing words, addtion, and divition
            System.out.println( "Hens " + ( 25.0 + 30.0 / 6.0 ) );
            //Printing words, mulitplation, remanderthingy and subtraction 
    		System.out.println( "Roosters " + ( 100.0 - 25.0 * 3.0 % 4.0 ) );
    
    		//Printing words
            System.out.println( "Now I will count the eggs:" );
    
    		//Printing the remanderthingy divition, and addtion/subtraction
            System.out.println( 3.0 + 2.0 + 1.0 - 5.0 + 4.0 % 2.0 - 1.0 / 4.0 + 6.0 );
    
    		//Printing words
            System.out.println( "Is it true that 3 + 2 < 5 - 7?" );
    
    		//divition, addition subtraction
            System.out.println( 3.0 + 2.0 < 5.0 - 7.0 );
    
    		//Printing words and addition
            System.out.println( "What is 3 + 2? " + ( 3.0 + 2.0 ) );
    		//Printing Words and dubtraction
            System.out.println( "What is 5 - 7? " + ( 5.0 - 7.0 ) );
    
    		//Printing words
            System.out.println( "Oh, that's why it's false." );
    
    		//Printing words
            System.out.println( "How about some more." );
    
    		//Checking greater than
            System.out.println( "Is it greater? " + ( 5.0 > -2.0 ) );
    		//checking greater than or equal
            System.out.println( "Is it greater or equal? " + ( 5 >= -2 ) );
    		//checking lesser than or equal
            System.out.println( "Is it less or equal? " + ( 5.0 <= -2.0 ) );
    	}
    }
    

Picture of the output