Create a program that shows what happens when you choose to be respectful or not.

 

  1. Copy down your example of being respectful and where it applies (Commons, Halls, Class, Bus, Restrooms, Everywhere)
  2. Go to https://repl.it/languages/java or use your favorite IDE
  3. Copy this code
  4. class Main {
      public static void main(String[] args){
        double chance = Math.random();
        System.out.println(chance);
        if(chance<0.5)
          System.out.println("bad news, you were impatient in line");
        else
          System.out.println("great, you were patient in line");
      }
    }
    
    
    
  5. Check to be sure it runs,
  6. Modify it to choose between respectful and disrespectful behavior.
  7. What would be some ways to make the program even more interesting?