We organized ourselves in seven teams.

Work one problem as a team (hour glasses).

  1. start the hourglasses at the same time

  2. when the 3 min one ends announce that you're starting

  3. when the 4 minute one is over you have one minute 

  4. flip the 4 minute one and wait 

  5. when 4 minute hourglass over you have 5 minutes

This team three. 

Team one and two challenge. 

  1. I decide when to start, same thing. 

  2. Wait until 3 min glass ends. I have three minutes. 

  3. Flip the 3 min glass and wait one more minute for 4 min glass to end. 

  I have four minutes overall and the threemin glass has one minute at the bottom. 

  4. Flip the 3 min glass and wait until it ends. 

class One {
  public static void main(String[] args) {
     System.out.println("Team: " + (1 + (int)(Math.random() * 7))); 
  }
}

Problem 2.

Six matches four equilateral triangles. 

Is that a good answer? How good? How bad? 

--

https://www.amazon.com/Programming-Principles-Practice-Using-2nd/dp/0321992784/ref=sr_1_2?ie=UTF8&qid=1471877456&sr=8-2&keywords=stroustroup

http://www.horstmann.com/ccj2/ccjapp3.html