A computer is an electronic device that processes, stores, and outputs data based on programmed instructions. It is capable of performing a wide range of tasks, from simple calculations to complex simulations, through a combination of hardware and software.