Why need to translate a program written in a high-level language into machine language?
You need to translate high-level languages into a low-level language because the computer can’t understand commands like “int i = 10”. The processor only understands a very limited set of instructions, and any high-level language code needs to be translated into a set of machine-readable instructions.