A computer is a programmable electronic device that accepts raw data as input and processes it with a set of instructions and gives output.