Assignemnt #33 and WhatIf.java

Code

    /// Name: Boris Kazantsev
    /// Period: 6
    /// Program Name: WhatIf
    /// File Name: WhatIf.java
    /// Date Finished: 10/23/2015
    
    public class WhatIf{
        public static void main(String[] args){
            int people = 20, cats = 30, dogs = 15;
            
            if ( people < cats){
                System.out.println("Too many cats!");
            }
            if ( people > cats){
                System.out.println("No more cats!");
            }
            if ( people < dogs ){
                System.out.println("The world is drooled on!");
            }
            if ( people > dogs){
                System.out.println("The world is dry!");
            }
            
            dogs += 5;
            
            if ( people>= dogs)
            {
                System.out.println("More People!");
            }
            if ( people <= dogs){
                System.out.println("More Dogs!");
            }
            if ( people == dogs){
                System.out.println("People are Dogs!");
            }
        }
    }
                   
    

Picture of the output

Assignment 33