A computer is a machine that can be programmed to automatically carry out sequences of arithmetic or logical operations (computation).