A computer is a programmable machine designed to perform arithmetic and logical operations automatically and sequentially on the input given by the user and gives thedesired output after processing.
Computer components are divided into two major categories namely hardware and software. Hardware is the machine itself and its connected devices such as monitor, keyboard, mouse etc.