We have a coffee shop; Hell or Glory (HoG). We currently only sell our coffee in our retail store. In store, customers can either buy a coffee we make for them, or they can buy our coffee beans to take home with them and enjoy themselves. For our beans, we sell a variety of different grinds to work with different machines.
We’ve set up everything from interior design (Swedish inspired) to personally selecting the coffee roasters myself. We’ve kind of neglected the IT side of things, so much so, our till transactions and what coffee we serve are stored in simple flat (CSV) files.
We’ve attached the takings for yesterday and the coffee prices.
We need a simple test harness, ideally using a unit testing framework of your choice to tell me stuff about the files.
Our requirements are expressed as User Stories below.
As a coffee shop owner I want to understand what the most popular blend of coffee is So I can order accordingly
As a coffee shop owner I want to know how much money was charged on any given day So I can understand the heath of my business
As a coffee shop owner I want know what the most popular extras are So I can order accordingly
As a coffee shop owner I want to know what percentage of customers choose from the extras So I can understand if I can make more money by charging an additional fee
• Do not focus on any cosmetics, we’re only interested in the raw data.
• Do consider both happy paths and sad paths (what happens when something goes wrong).
• Submit the finished code via a public GitHub repository (and let us know the URL).
• Use the programming language that you feel most comfortable in, we don’t mind what you code in for this exercise!