A computer is an electronic device that uses a keyboard, mouse, or joystick as input devices and a monitor, printer, or plotter as output devices. It has primary memory and secondary memory and can only understand binary numbers consisting of 1s and 0s.