Перейти на главную страницу
Programming is the process of preparing a set of coded instructions which enables the computer to solve specific problems or to perform specific functions. The essence of computer programming is the encoding of the program for the computer by means of algorythms. The thing is that any problem is expressed in mathematical terms, it contains formulae, equations and calculations. But the computer cannot manipulate formulae, equations and calculations. Any problem must be specially processed for the computer to understand if it is coded or programmed.
The phase in which the system's computer programs are written is called the development phase. The programs are lists of instructions that will be followed by the control unit of the central processing unit (CPU). The instructions of the program must be complete and in the appropriate sequence, or else the wrong answers will result. To guard against these errors in logic and to document the program's logical approach, logic plans should be developed.
There are two common techniques for planning the logic of a program. The first technique is flowcharting. A flowchart is a plan in the form of a graphic or pictorial representation that uses predefined symbols to illustrate the program logic. It is, therefore, a "picture" of the logical steps to be performed by the computer. Each of the predefined symbol shapes stands for a general operation. The symbol shape communicates the nature of the general operation, and the specifics are written within the symbol. A plastic or metal guide called a template is used to make drawing the symbols easier.
The second technique for planning program logic is called pseudocode. Pseudocode is an imitation of actual program instructions. It allows a program-like structure without the burden of programming rules to follow. Pseudocode is less time-consuming for the professional programmer than is flowcharting. It also emphasizes a top-down approach to program structure.
Pseudocode has three basic structures: sequence, decision, and looping logic. With these three structures, any required logic can be expressed.
1. What is programming? 2. What is the essence of programming? 3. What should be done with the problem before processing by the computer? 4. What is a program? 5. What are instructions? 6. What are the main techniques for planning the program logic? 7. What is a flowchart? 8. What is a template and what is it used for? 9. What do you understand by "pseudocode"? 10. What are the basic structures of pseudocode?
Совокупность закодированных команд; суть компьютерного программирования; кодирование посредством алгоритма; формулы, уравнения, вычисления; обработать особым образом; перечень команд; необходимая последовательность; защищать от ошибок; составлять план логической последовательности; общепринятая методика; логическая последовательность выполнения программы; построение блок-схемы; наглядное представление; заранее заданные символы; шаблон; псевдопрограмма; без издержек; выделять принцип нисходящей обработки; расходовать меньше времени; логическая схема выполнения операций в цикле; необходимая последовательность операций.
1. I should like to be a top specialist in computer technology. 2. It is necessary that the program should be debugged (отлажена) by a programmer. 3. It is required that the programmer should code the instructions of the program in the appropriate sequence. 4. The manager demanded that the work should be performed in time. 5. Write down the algorythm of computer operations lest you should make errors. 6. Our teacher speaks English as if he were a real Englishman. 7. Without the Sun there would be no light, no heat, no energy of any kind. 8. I wish it were summer now and we could go to the seaside. 9. American scientists suggested that the quantum generator should be called laser, which is the acronym for light amplification by stimulated emission of radiation. 10.1 wished you had mentioned these facts while the subject was being discussed.
Let's assume that we have studied the problem, designed a logical plan (our flowchart or pseudocode), and are now ready to write the program instructions. The process of writing program instructions is called coding. The instructions will be written on a form called a coding form. The instructions we write will be recorded in a machine-readable form using a keypunch, key-to-tape, or key-to-disk, or entered directly into computer memory through a terminal keyboard.
The computer cannot understand instructions written in just any old way. The instructions must be written according to a set of rules. These rules are the foundation of a programming language. A programming language must convey the logical steps of the program plan in such a way that the control unit of the CPU can interpret and follow the instructions. Programming languages have improved throughout the years, just as computer hardware has improved. They have progressed from machine-oriented languages that use strings of binary Is and 0s to problem-oriented languages that use common mathematical and/or English terms.
There are over 200 problem-oriented languages. The most common of them are COBOL, FORTRAN, PL/I, RPG, BASIC, PASCAL.
COBOL
COBOL was the most widely used business-oriented programming language. Its name is an acronym for Common Business-Oriented language. COBOL was designed to solve problems that are oriented toward data handling and input-output operations. Of course, COBOL can perform arithmetic operations as well, but its greatest flexibility is in data handling. COBOL also was designed as a self-documenting language. Self-documenting languages are those that do not require a great deal of explanation in order to be understood by someone reading the program instructions. The self-documenting aspect of COBOL is made possible by its sentence like structure and the very generous maximum symbolic field-name length of 30 characters. With a field-name length of up to 30 characters, the name can clearly identify the field and its purpose.
The FORTRAN IV language is oriented toward solving problems of a mathematical nature. The name FORTRAN comes from the combination of the words formula translation. The version of FORTRAN IV has been designed as algebra-based programming language. Any formula or those mathematical reialionships that can be expressed algebraically can easily be expressed as a FORTRAN instruction. FORTRAN is the most commonly used language for scientific applications.
PL/I
PL/I stands for programming language I. It was designed as a general-purpose language incorporating features similar to COBOL for data handling instructions and features similar to FORTRAN for mathematical instructions. PL/I is much more than a combination of the good features of both COBOL and FORTRAN, as it has many capabilities that are unique. Yet, although PL/I is one of the most versatile and the most powerful of the programming languages, it is not the most commonly used. COBOL and FORTRAN have been available for a longer period of time than PL/I, and many more users work with those languages.
Языки программирования; блок-схема; кодированная форма; вид, удобочитаемый для компьютера; в соответствии с набором правил; представить логические шаги программы; таким образом; совершенствовать языки программирования; машинно-ориентированные языки; проблемно-ориентирован-ные языки; обычный термин; язык для программирования экономических задач; обработка информации; операции по вводу-выводу данных; гибкость; идентифицировать поле и его цели; решение проблем математического характера; сферы научного применения; универсальный язык; включать свойства; уникальные возможности; многофункциональный и самый мощный из языков программирования.
RPG II is a business-oriented language. The name stands for report program generator. RPG is considerably different from other programming languages. RPG is, in effect, a large prewritten program. The programmer simply indicates the options within the master program that are to be used and, through a set of indicators, when they are to be used.
RPG was originally referred to as a "quick-and-dirty" programming language. That is, it is quick for the programmer to write and relatively inefficient in its use of main storage and processing speed. The latest version of RPG, called RPG II, greatly improved the language and gave it additional capabilities. RPG has an advantage over COBOL in that it requires less training for a programmer to become proficient in it. For this reason, RPG is commonly used on many smaller computers and in small business.
2. BASIC
BASIC is the acronym for beginner's all-purpose symbolic instruction code. It was developed in Dartmouth College as an easy-to-learn programming language for students and inexperienced programmers. Its key design goal is simplicity. BASIC has become a very popular language in systems where many users share the use of a computer through terminals and it has become a universal language for personal computers.
The language BASIC is mathematically oriented, that is, its typical use is to solve problems of a mathematical nature. Because BASIC programs are usually executed from a terminal or microcomputer where input is entered through a keyboard and printed output is relatively slow, problems of a business nature requiring large volumes of input-output data are usually not practical.
3. PASCAL
PASCAL was invented in 1970 by Professor Niklaus Wirth of Zurich, Switzerland. It was named after the mathematician Blaise Pascal, who invented one of the earliest practical calculators. PASCAL is a mathematically oriented programming language and, as such, is most commonly used in mathematics, engineering, and computer science departments of colleges and universities. This language is somewhat unusual in that it was designed to be a structured language. This means that the program must be written in logical modules which are in turn called by a main controlling module. Much of PASCAL'S popularity is due to work done at the University of California at San Diego, where PASCAL has been implemented on several different computers including microcomputers.
As we see, most of the symbolic languages are oriented toward the particular application areas of business or science (math). The one problem with all symbolic languages is that none of them can be understood by a computer. The symbolic languages may say AP, ADD, or us6 a "plus" sign to indicate an addition step, but the only thing that means addition to a computer is its binary machine code. We have symbolic programs that are relatively easy for humans to understand, but they cannot be understood by computers. On the other hand, we have machine code that is understood by the computer, but it is difficult for humans to use. The solution is a translator that translates the symbolic program into machine code. The translator allows the human to work with relatively easy-to-understand symbolic languages and it allows the computer to follow instructions in machine code. The translation of symbolic instructions to machine code is accomplished through the use of a program called a language processor. There are three types of language processors. They are called assemblers, compilers, and interpreters. Each translates symbolic instructions to machine code, but each does it differently.
(The translator is a program itself. It is part of a group of programs, called the operating systems, that help us to use the computer.)
2. Running the computer program
The operating system is a collection of program provided by the computer's manufacturer that allows us to schedule jobs for the computer, to translate source programs into object programs, to sort data stored on secondary storage devices, and to copy data from any input device to any output device. These programs are called control programs, language programs and utility programs.
The control program (often called the supervisor, monitor, or executive) is a main-storage-resident program. Its functions are to schedule jobs, scheduled input and output for our programs and to monitor the execution of our programs.
The language processors are programs that translate source programs into object programs. There are three types of language processors: assemblers, compilers, and interpreters. Each language has its own language processor.
The service programs are programs that are commonly used in all data processing centers. They have functions that are required by everyone using a computer. Examples of service programs include linkage editors to prepare object programs for execution, a librarian to catalog programs into a library area on magnetic disc, utility programs to transfer data from device to device, and sort-merge programs for sorting data on magnetic tape or disk.
3. Testing the computer program
There are two kinds of errors or bugs with which programmers must deal. The first type is the coding error. Such errors are syntax errors that prevent the language processor from successfully translating the source program to object program code. The language processor identifies the nature and the location of the error on the source program listing, so these errors are relatively easy to find and correct. The second type of bug is the logic error. The computer program can be successfully translated, but the program does not produce the desired results. These errors are generally much more difficult to find and to correct than are coding errors. Logic errors can be avoided through careful planning of the program logic, but it is the programmer's responsibility to test thoroughly all of the program's functions, in order to verify that the program performs according to specifications.
There are many tools provided to the programmer to help in debugging the program logic. These tools are called debug packages or tracing routines. They assist the programmer in following the logic by printing out calculation results and field values used in making logic decisions in the program. In a few cases it may be necessary to use a memory dump — a printout of the instructions and date held in the computer's memory — in order to find the cause of logic errors.
Final Test
1. Подберите вместо пропусков подходящее по смыслу слово.
1. The most common ______ for planning the program logic are flowcharting and pseudocode.
a) technologies; b) technics; c) techniques.
2. ______ was designed for dealing with the complicated mathematical calculations of scientists and engineers.
a) COBOL; b) FORTRAN; c) PL/I.
3. ______ is the foundation of any programming languages.
a) a set of rules; b) a group of numbers; c) a lot of instructions
4. I / О______match the physical and electrical characteristics of input-output devices.
a) interchanges; b) interfaces; c) interpretations
5. Letter-quality, dot-matrix and ink-jet printers are all ______ printers.
a) line; b) page; c) character.
6. The most common device used to transfer information from the user to the computer is the______.
a) keyboard; b) printer; c) modem.
7. Input-output units link the computer to its external.
a) requirement; b) development; c) environment.
8. I / О devices can be classified according to their speed, visual displays being _______ devices.
a) high-speed; b)medium-speed; c) low-speed.
2. Согласуйте слова в левой колонке с их интерпретацией, предложенной справа.
1. Computer a) an electronic device accepting data processing results from the computer system;
2. Input b) the unit performing arithmetic operations called for in the instructions;
3. Output c) the unit coordinating all the activities of various components of the computer. It reads information, interprets instructions, performs operations, etc;
4.Software d) a set of programs designed to control the operation of a computer
5.Hardware e) lists of instructions followed by the control unit of the CPU:
6. Storage f) an electronic device keying information into the computer;
7.CPU g) the unit holding all data to be processed, intermediate and final results of processing;
8.CU h) visible units, physical components of a data processing system;
9.ALU i) the unit that directs the sequence of system operations, selects instructions and interprets them;
10.Program j) a device with a complex network of electronic circuits that can process information, make decisions, and replace people in routine tasks.
Английский язык – действенный фактор в развитии компьютерных технологий и Интернета (элективный курс). М – Магнитогорск: Многопрофильный лицей №1, 2006 – 70 с
14 12 2014
7 стр.
Данный элективный курс выстраивается на уровне межпредметных связей (русский язык и литература), рассчитан на 12 часов. Элективный курс направлен на углубление и расширение знаний
10 10 2014
6 стр.
Данный элективный курс является предметом по выбору для учащихся 10-ых классов и рассчитан на 34 часа
16 12 2014
3 стр.
Элективный курс предназначен для реализации в 11классе общеобразовательной школы
11 10 2014
1 стр.
Данный элективный курс будет способствовать активизации школьной внеурочной деятельности через осознанное участие в ней учеников для получения возможности оценивания их достижений
01 10 2014
1 стр.
Данный элективный курс рекомендуется для учащихся, планирующих в будущем выбрать профессию врача, продолжить обучение в медицинском колледже или химико-биологическом профиле в 10 –
11 09 2014
1 стр.
Данный элективный курс предназначен для учащихся профильного обучения. Программа рассчитана на 34 часа
23 09 2014
1 стр.
Данный элективный курс, предполагает изучение евангельского текста. В то же время, евангельские сюжеты не всегда доступны учащимся в связи с их аллегоричностью и сложностью языка
18 12 2014
1 стр.