A computer is an electronic device that processes and stores data according to instructions provided, enabling tasks like computation, communication, and information management.