A computer is an electronic device that can receive input from a user, store and process data according to instructions provided by a program, and provide output to the user. It uses arithmetic and logical operations to perform calculations and make decisions based on its programming.