A computer is an electronic device that can receive input from devices like scanners, light pens, mice, keyboards and joysticks. It then outputs information to monitors and printers. Common input devices for computers include scanners, mice, keyboards and joysticks while common output devices are monitors and printers.