A computer is a programmable electronic machine that accepts data as input, processes it according to stored instructions, and produces output — all at very high speed.
Breaking that down: it takes in information in digital form, holds both the data and the program in memory, carries out arithmetic and logical operations, and returns results you can use. "Programmable" is the key word. Unlike a calculator built for one job, a computer can be told to do something entirely different simply by loading different software.