Course Program

I PART 1. is full of insight into the issues. Introduction to a programming language programming is a notation consisting of symbols and rules allowing to write programs. All language is composed of its syntax and its semantics. He is understood by syntax to the same rules and semantics to the meaning of the symbols and words used. 1.1.2 Types of language there are machine languages that are directly by machine understandable.

This expressed in terms of the smallest memory unit: the bit (binary code 1 or 0). source of information. The disadvantage of this type of language is that it is difficult to write and to understand since it consists of 1 and 0. They are also symbolic languages, which are those that are (instructions and statements) written with words similar to those of human languages. For example: b = 2 If (a > b) then print a is greater than b 1.2 program a program is a logical sequence of instructions written in a programming language that dictates the actions that it must be performed to the computer. A statement is an order given to the machine to execute a specific action, among which are the operand and operator. Example: Print to * b operands: a, b operators: print, * (this is the sign of multiplication in programming) 1.2.2 types of program program source: program written in some programming language developed by the programmer. Program object: program composed of ones and zeros, the compilation of programs sources product. 1.3 Compiler and compiler a performer completely reads a program in a high-level language (C++, Python, Java, Perl, Lisp, etc) and is translated in its entirety into a program’s code of machine. Program code of machine resulting can be run as many times you want, without having to translate the original program. An interpreter acts in a different way: reads a program written in a high-level language instruction to instruction, and for each one of them, made a translation to code instructions of machine equivalents and execute them immediately.