The four main components of a computer are:
Random Access Memory (RAM)
Central Processing Unit (CPU)
Input/Output (I/O)
Hard disk