Expressions

TSV:

rock_concert.tsv



Footnotes:

  1. These technically resolve to a 0 or 1 integer - because that’s how C represents boolean values. But the concept of a boolean (true/false) is still important.
  2. In practice we wouldn’t want to hard code an exact number here. We’d make our program handle a varying number of rows - but the methods to do that are a bit too advanced for right now.
  3. This is a simplified approach since the focus here is on the boolean operators, not this logic. Ideally we'd calculate this range by using the next non-relevant row's timestamp to handle cases where the timestamps weren't exactly 60 seconds apart. And then only make an assumption for the last row in the spreadsheet if it happened to be above the threshold.