Introduction
Yesterday, I went to a restaurant with my friends. We ordered some food, finished eating, and asked the waiter for the bill.
While the waiter was preparing the bill, I started thinking about how the billing system works behind the sce...