Computer is an electronic device that performs calculations and stores data. It consists of both hardware and software. Hardware refers to any physical device used with the machine, like the monitor, CPU, and keyboard. Software is a collection of code installed into the computer's hard drive. The CPU is where most calculations take place. Input devices like the keyboard and mouse are used to enter information. Output devices such as the monitor and printer are used to display the results of computations.