NumbersAndMath

Code

/// Name: Sam Benoy
    /// Period: 6
    /// Program Name:Numbers and Math
    /// File Name: NumbersAndMath.java
    /// Date Finished: 9/11/2015
    
    public class NumbersAndMath
{
	public static void main( String[] args )
	{
        //Computer will count chickens
		System.out.println( "I will now count my chickens:" );
		//The computer will divide 30 by 6 and add 25
        System.out.println( "Hens " + ( 25 + 30 / 6 ) );
		//The computer will use Roosters in a sentence and do math inside the parenthesis
        System.out.println( "Roosters " + ( 100 - 25 * 3 % 4 ) );
        //computer will count eggs
		System.out.println( "Now I will count the eggs:" );
        //The computer will do the math in the parenthesis
		System.out.println( 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6 );
        //It will tell if the problem is true or false
		System.out.println( "Is it true that 3 + 2 < 5 - 7?" );
        //it will find out if its true or false
		System.out.println( 3 + 2 < 5 - 7 );
        //It will find out what 3 + 2 is
		System.out.println( "What is 3 + 2? " + ( 3 + 2 ) );
		//It will find out what 5 - 7 is
        System.out.println( "What is 5 - 7? " + ( 5 - 7 ) );
        //I will know its false
		System.out.println( "Oh, that's why it's false." );
        //It will ask for more
		System.out.println( "How about some more." );
        //It will find out which one is greater
		System.out.println( "Is it greater? " + ( 5 > -2 ) );
        //It will find out if its greater or equal
		System.out.println( "Is it greater or equal? " + ( 5 >= -2 ) );
        //It will find out if it is less or equal
		System.out.println( "Is it less or equal? " + ( 5 <= -2 ) );
	}
}

NumbersAndMath

Assignment 11