A computer is an electronic device capable of performing various operations, including storing, retrieving, and processing data.