2. The Programming Process - Coding the program (iii)

 2.3 Coding the program




As the programmer, your next step is to code the program-that is, to express your solution in a programming language. You will translate the logic from the flowchart or pseudocode-or some other tool-to a programming language. As we have already noted, a programming language is a set of rules that provides a way of instructing the computer what operations to perform. There are many programming languages: BASIC, Pascal, Java, Python, C and C# are some examples. You may find yourself working with one or more of these.


Although programming languages operate grammatically, somewhat like the English language, they are much more precise. To get your program to work, you have to follow exactly the rules-the syntax-of the language you are using. Of course, using the language correctly is no guarantee that your program will work, any more than speaking grammatically correct English means you know what you are talking about. The point is that correct use of the language is the required first step. Then your coded program must be keyed, probably using a terminal or personal computer, in a form the computer can understand.


One more note here: Programmers usually use a text editor (e.g. Notepad), which is somewhat like a word processing program, to create a file that contains the program.



Previous
Next Post »