What Does a Computer Consist Of?
A computer system is made up of four main foundational components that work together to process data, execute programs, and interact with the user.
1. CPU (Central Processing Unit)
- What it is: The "brain" of the computer.
- Role: Executes instructions, performs calculations, and manages data flow between other components.
- Key Function: Fetches instructions, decodes them, and executes the results.
2. Memory & Storage
Maintains data both temporarily for active tasks and permanently for long-term storage.
- RAM (Random Access Memory):
- Type: Primary / Volatile Memory.
- Role: Holds data and instructions currently in use by the CPU. Fast access, but loses data when powered off.
- Hard Disk / SSD (Solid State Drive):
- Type: Secondary / Non-Volatile Storage.
- Role: Stores files, operating systems, and programs permanently, retaining data even when the computer is turned off.
3. Input Devices
- What they are: Hardware used to enter data and commands into the computer.
- Role: Translates human interaction into signals the computer can process.
- Examples: Keyboard, Mouse, Microphone, Scanner.
4. Output Devices
- What they are: Hardware used to convey processed information back to the user.
- Role: Translates digital data into human-readable or usable forms.
- Examples: Monitor/Display, Printer, Speakers, Headphones.
How does the computer understand codes?
To translate human-readable source code into a binary format that the CPU can execute, the code passes through four main stages.