Programming
Programming
Understanding the World’s Most Complex Machine
The computer is the most complex machine humans have created and the programs that run on them can be even more complex.
You may think this would make it very difficult for you to learn to program a computer. However, no matter how complex programs are, they all depend on a small collection of basic ideas. And at their lowest level, the only thing computers really do is process two different voltages: one low and one high, which are represented by 0 and 1.
If you first learn some basic concepts, programming becomes far easier and makes more sense.
Computer programs depend on algorithms. An algorithm is a step-by-step procedure to solve a problem. If you were asked to make a cup of tea for someone, you would follow an algorithm in your head, which might involve decisions such as ‘which type of tea do you like?’, ‘do they have sugar?’, and ‘do they have milk?’.
Once a programmer has created a method, or algorithm, they code it in a computer language and run it. However, they need a way to describe algorithms before they start.
Computer programmers have invented two main ways to represent algorithms. One is a pictorial method called a flowchart and the other a word method called structured English.