What is a computer program?
- A program is a set of step-by-step, precise and detailed instructions provided to the computer to solve a certain problem or task.
- It can also be defined as a collection of instructions that performs a specific task when executed by a computer.
- A program is like a recipe containing a list of ingredients known as variables and a list of directions known as statements that tell the computer what to do with the variables. The variables can represent numeric data, text, or graphical images.
- A computer requires programs to function, and typically executes the program's instructions in a central processing unit.