Basic Knowledge of Computers
This page explains what a computer is.
Definition of a Computer
A computer is a machine that has the following five units:
- Input unit
- Output unit
- Storage unit
- Control unit
- Arithmetic logic unit
Roughly speaking, a computer is a machine that performs a specific process on a certain input and outputs the result.
It can store, calculate, and output the input data. Control has the role of controlling the aforementioned four units.
What is needed to operate a computer
To operate a computer, programs (software) are needed in addition to the devices (hardware).
Programs instruct the computer on what kind of processing to perform. Programs are written in a format that the computer can understand.
An example of a program is as follows. A program that calculates the sum from 1 to an input integer:
| |
The program is converted into machine code by a compiler, transforming it into a format that the computer can execute.
