My code for project Coffe Mashine in JetBrainsAcademy. You can try it here: https://onlinegdb.com/a7Y_k-ioo .