A computer is a data processing machine that performs tasks with speed and accuracy using stored programs, without direct human intervention or getting tired. It has high storage capability but can make mistakes. Hardware refers to physical devices like keyboards and monitors, while software refers to programs like Microsoft Excel that run on the hardware.