A method of cooking food using a device for cooking the food in a container includes supplying water for cooking the food; generate heat by a heater of the device; and controlling by a controller an operation of the heater to initially supply the container with a first quantity of the water in a form of steam during a first period of time of a cooking process, and to subsequently supply the container with a second quantity of the water in a form of heated water during a second period of time of the cooking process. The second period of time is longer than the first period of time.