Assignemnt #11 and Numbers And Math

Code

/// Name: Raff Lisbona
/// Period: 6
/// Program Name: Numbers and Math
/// File Name: NumbersAndMath.java
/// Date Finished: 9/14/2015

public class NumbersAndMath
{
    public static void main( String[] args )
    {
        //This line prints what is in the " ".
        System.out.println( "I will now count my chickens:" );
        //This line tells how many hens there are.
        System.out.println( "Hens " + ( 25.0 + 30.0 / 6.0 ) );
        
        //This line tells how many roosters there are.
        System.out.println( "Roosters " + ( 100.0 - 25.0 * 3.0 % 4.0 ) );
        
        //This line prints what is in the " ".
        System.out.println( "Now I will count the eggs:" );
        
        //This line counts the eggs.
        System.out.println( 3.0 + 2.0 + 1.0 - 5.0 + 4.0 % 2.0 - 1.0 / 4.0 + 6.0 );
        
        //This line prints what's in the " ".
        System.out.println( "Is it true that 3 + 2 < 5 - 7" );
        
        //This line does the math.
        System.out.println( 3.0 + 2.0 < 5.0 - 7.0 );
        
        //This line adds more numbers.
        System.out.println( "What is 3 + 2? " + ( 3.0 + 2.0 ) );
        //This line subtracts numbers.
        System.out.println( "What is 5 - 7? " + ( 5.0 - 7.0 ) );
        //This line prints words.
        System.out.println( "Oh, that's why it's false." );
        //This line also prints words.
        System.out.println( "How about some more." );
        
        //This line answers the true or false question.
        System.out.println( "Is it greater? " + ( 5.0 > -2.0 ) );
        //This line does the same thing.
        System.out.println( "Is it greater or equal? " + ( 5.0 >= -2.0 ) );
        //So does this line.
        System.out.println( "Is it less or equal? " + ( 5.0 <= -2.0 ) );
    }
}
    

Picture of the output

Assignment 11 Assignment 11