A computer accepts input, stores data, processes data according to programs of instructions, controls its operations, and produces output. It has both hardware and software components. The document defines hardware as the physical aspects of computers and software as programs and instructions. It describes the major functions of a computer as input, processing, storage, control, and output and explains the roles of the central processing unit, memory, and input/output devices in carrying out these functions.