printer control puzzle

the case

  • there are 5 printers in a shop, but users are keeping selecting
    wrong ones for printouts
  • now we need a new table that derives the correct printer for each
    user at runtime
  • 3 of the printers have dedicated users (‘chacha’, ‘lee’, ‘thomas’)
    • if ‘lee’ initiates another print, he gets only the
      printer he already uses (‘LPT2’)
  • if ‘mr_paul’ initiates another print, he needs to be assigned to
    only one of the free printers

Continue reading “printer control puzzle”