For a long time, humanity was wondering how could a computer make coffee... People need coffee to get awake and stay asleep in front of the computer for a long time. Everyone knows that coding is better at night...
The main problem is how to control the coffee machine with the computer, so that it will be controlled by software. This generally means an ON/OFF switch implemented as a circuit which controls the coffee-machine's power supply.