A computer is a machine that can be programmed to carry out a set of arithmetic or logical operations automatically. Devices that perform these operations are called processors. Computers may be used to perform various tasks, such as calculating payroll and preparing tax returns, word processing, playing games, or searching the Internet.