A computer is a machine that can be instructed to carry out sequences of arithmetic or logical operations automatically via computer programming.