Unfortunately computers cannot understand ordinary spoken English or any other natural language. The only language they can understand directly is machine code. This consists of 1s and 0s (binary codes) that are processed by the CPU.
However machine code as a means of communication is very difficult to write. For this reason, we use symbolic languages that are easier to understand. Then, by using a special program, these languages can be translated into machine code. For example, the so-called assembly languages use abbreviations such as ADD, SUB, MPY to represent instructions. These mnemonic codes are like labels easily associated with the items to which they refer.
Basic languages, where the program is similar to the machine code version, are known as low-level languages. In these languages, each instruction is equivalent to a single machine code instruction, and the program is converted into machine code by a special program called assembler. These languages are still quite complex and restricted to particular machines.
To make the programs easier to write and to overcome the problem of intercommunication between different types of machines, higher-level languages were designed such as BASIC, COBOL, FORTRAN or Pascal. These are all problem-oriented rather than machine-oriented. Programs written in one of these languages (known as source programs) are converted into low-level language by means of a compiler (generating the object program). On compilation, each statement in a high-level program is generally translated into many machine code instruction.
People communicate instructions to the computer in symbolic languages and the easier this communication can be made the wider the application of computers will be. Scientists are already working on Artificial Intelligence and the next generation of computers may be able to understand human languages
L Instructions are written in a high-level language (e.g. Pascal, BASIC, COBOL, Ada, C, Lisp). This is known as source program
Compilers translate the original code into a lower-level language or machine code so the CPU can understand it.
Instructions are compiled and packaged into a program. The software is ready to run on the computer.
ook at the groups of words and decide what part of the speech each one is. Then complete the sentences with the correct word.
compile compiler compilation
Programs written in a high-level language require or translation into machine code.
A generates several low-level instructions for each source language statement.
Most computer make a plan of the program before they write it. This plan is called flowchart.
A computer is a set of instructions that tells a computer what to do.
C In the word debug the prefic de- is used. This prefix means to reverse an action. What do the following words mean? defrost –declassify – decode – decompose – decentralize
onverting an algorithm into a sequence of instructions in a programming language is called
Put the paragraphs in the right orfer to make up the text
First of all you have to understand exactly what the problem is, and define it clearly. This means you have to decide in a general way how to solve a problem.
Then you transfer the steps in the flowchart into instructions written in a computer language. You usually write these in a high-level language like BASIC or Pascal. You have to then use something called a compiler which translates the instructions into machine code, which is the only language understood by the processor.
The next step is to decide an algorithm, which is a step-by-step plan of instructions used to solve a problem. You do this in a flowchart. You use special symbols to show how the computer works through your program – where it makes decisions, where it starts and ends, and thinks like that.
And then last of all you have to write instructions explaining to people how to use it. A great program is not much use unless people know how to use it.
Once you have written your program, you have to test it with sample data to see if there are any bugs or errors. Usually there are, so the programs has to be cleared of them or ‘debugged’.
Number the steps in producing a program in the order they are explained in the text. Provide documentation of the program.
Understand the problem and plan the solution.
Test and correct the program.
Make a flowchart of the program.
Write the instructions in coded form and compile the program.