A translator is a type of system software designed to convert program code written in one programming language (the source code) into another language (the target code).
Source Language: Typically a High-level Language (like C++, Java, or Python), which is easy for humans to read and write.
Target Language: Machine Language (also called machine code or binary code), which consists of the binary instructions (0s and 1s) that the computer's CPU can directly execute.
The main types of translators are:
Compilers: Translate the entire high-level program into machine code before execution.
Interpreters: Translate and execute the high-level program line by line.
Assemblers: Translate Assembly Language (a low-level language that is a step above machine code) into machine code.