A computer is defined as an electronic device that receives input from a user through devices like a mouse or keyboard, processes the data based on a program of instructions, and displays the results on a screen. There are two main types of computers: analog computers that use continuously changing data like temperature, and digital computers that manipulate binary digits. Computers also differ in size from mainframes for large organizations to microcomputers for personal use. The basic units of a computer are the hardware components like the central processing unit and storage devices, as well as software programs and applications.