A computer is a programmable machine that receives input, stores and manipulates data, and provides output. It consists of basic components like a case, motherboard, processor, memory, drives, monitor, keyboard and mouse. Computers come in various sizes and types including desktops, laptops, and tablets. They can also be classified as mainframes, microcomputers, and supercomputers depending on their processing power and size.