Assignemnt #11 Numbers and Math

Code

    /// Name: Brendan Miller
    /// Period: 5
    /// Program Name: Numbers And Math
    /// File Name: NumbersAndMath.java
    /// Date Finished: 9/14/2015

    public class NumbersAndMath
    {
	    public static void main( String[] args )
	    {
		    System.out.println( "I will now count my chickens:" );
        //Number of Hens
		    System.out.println( "Hens " + ( 25.0 + 30.0 / 6.0 ) );
        //Number of Roosters
		    System.out.println( "Roosters " + ( 100.0 - 25.0 * 3.0 % 4.0 ) );
		    System.out.println( "Now I will count the eggs:" );
        //Number of Eggs
		    System.out.println( 3.0 + 2.0 + 1.0 - 5.0 + 4.0 % 2.0 - 1.0 / 4.0 + 6.0 );
        //Question
		    System.out.println( "Is it true that 3.0 + 2.0 < 5.0 - 7.0?" );
        //Answer
		    System.out.println( 3.0 + 2.0 < 5.0 - 7.0 );
        //Math problem
		    System.out.println( "What is 3.0 + 2.0? " + ( 3.0 + 2.0 ) );
		    System.out.println( "What is 5.0 - 7.0? " + ( 5.0 - 7.0 ) );
        //Explanation
		    System.out.println( "Oh, that's why it's false." );
        //Should be a question but yolo
		    System.out.println( "How about some more." );
        //More questions
		    System.out.println( "Is it greater? " + ( 5.0 > -2.0 ) );
		    System.out.println( "Is it greater or equal? " + ( 5.0 >= -2.0 ) );
		    System.out.println( "Is it less or equal? " + ( 5.0 <= -2.0 ) );
	    }
    }
    

Picture of the output

Assignment 1