The four main functions of a computer are input, output, processing, and storage. Input involves entering data through devices like a keyboard or scanner. Output allows users to see and hear processed data through monitors or speakers. Processing is handled by the central processing unit which performs calculations by following instructions in programs. Storage saves data on both a short-term basis in RAM and long-term in devices like hard drives, even when the computer is off.