Assignemnt #11 and Numbers and Math

Code

    /// Name: Kyle Ivy
    /// Period: 5
    /// Program Name: NumbersandMath
    /// File Name: NumbersandMath.java
    /// Date Finished: 9/13/2015
    
    public class NumbersandMath
    
  {
  
  	public static void main( String[] args )
      
  	{
      
  		System.out.println( "I will now count my chickens:" );
          
          //30 divided by 6 plus 25
  		System.out.println( "Hens " + ( 25.0 + 30.0 / 6.0 ) );
          //(25 x 3)/4 subtract the remainder from 100
  		System.out.println( "Roosters " + ( 100.0 - 25.0 * 3.0 % 4.0 ) );
          //Adds text
  		System.out.println( "Now I will count the eggs:" );
          
          //6 minus 5 divided by 2, take remainder and add 5.75
  		System.out.println( 3.0 + 2.0 + 1.0 - 5.0 + 4.0 % 2.0 - 1.0 / 4.0 + 6.0 );
          //Adds text
  		System.out.println( "Is it true that 3 + 2 < 5 - 7?" );
          //answers the question above
  		System.out.println( 3.0 + 2.0 < 5.0 - 7.0 );
          //Adds text then does 3 + 2, etc.
  		System.out.println( "What is 3 + 2? " + ( 3.0 + 2.0 ) );
  		System.out.println( "What is 5 - 7? " + ( 5.0 - 7.0 ) );
          //Adds text
  		System.out.println( "Oh, that's why it's false." );
          //Adds text
  		System.out.println( "How about some more." );
          //Text then answer to question
  		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 ) );
          
  	}
      
  }
    

prog11.PNG

Assignment 1