A computer is a programmable machine that automatically and systematically executes arithmetic and logical operations on user input and provides the needed output after processing. Hardware and software are the two kinds of computer components.