Here is the codingbat code that we wrote today:

public boolean cigarParty(int cigars, boolean isWeekend) {

  return ((cigars >= 40) && (isWeekend || (cigars <= 60)));

/*
  if(isWeekend) {
    return (cigars >= 40);
  } else {
    if((40 <= cigars) && (cigars <= 60)) {
      return true;
    }
  }
  
  return false;
  */
  
/*
  if(40 <= cigars) {
    if(cigars <= 60) {
      return true;
    } else {
      if(isWeekend) {
        return true;
      }
    }
  }
  return false;
*/
}