Студопедия

КАТЕГОРИИ:


Архитектура-(3434)Астрономия-(809)Биология-(7483)Биотехнологии-(1457)Военное дело-(14632)Высокие технологии-(1363)География-(913)Геология-(1438)Государство-(451)Демография-(1065)Дом-(47672)Журналистика и СМИ-(912)Изобретательство-(14524)Иностранные языки-(4268)Информатика-(17799)Искусство-(1338)История-(13644)Компьютеры-(11121)Косметика-(55)Кулинария-(373)Культура-(8427)Лингвистика-(374)Литература-(1642)Маркетинг-(23702)Математика-(16968)Машиностроение-(1700)Медицина-(12668)Менеджмент-(24684)Механика-(15423)Науковедение-(506)Образование-(11852)Охрана труда-(3308)Педагогика-(5571)Полиграфия-(1312)Политика-(7869)Право-(5454)Приборостроение-(1369)Программирование-(2801)Производство-(97182)Промышленность-(8706)Психология-(18388)Религия-(3217)Связь-(10668)Сельское хозяйство-(299)Социология-(6455)Спорт-(42831)Строительство-(4793)Торговля-(5050)Транспорт-(2929)Туризм-(1568)Физика-(3942)Философия-(17015)Финансы-(26596)Химия-(22929)Экология-(12095)Экономика-(9961)Электроника-(8441)Электротехника-(4623)Энергетика-(12629)Юриспруденция-(1492)Ядерная техника-(1748)

Running the computer program




The conversion of symbolic languages

As we see, most of the symbolic languages are oriented to­ward 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 use a "plus" sign to indicate an addition step, but the only thing that means addition to a computer is its binary machine code. Wfe have symbolic pro­grams 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 dif­ficult for humans to use. The solution is a translator that trans­lates 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 instruc­tions 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 interpret­ers. 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.)

The operating system is a collection of program provided by the computer's manufacturer that allows us to shedule 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 pro­grams.

The control program (often called the supervisor, monitor, or executive) is a main-storage-resident program. Its functions are to schedule jobs, shedule input and output for our programs, and to monitor the execution of our programs.


Английский язык. Основы компьютерной грамотности 156

The language processors are programs that translate source programs into object programs. There are three types of language processors: assemblers, compilers, and interpreters. Each lan­guage has its own language processor.

The service programs are programs that are commonly used in all data processing centers. They have functions that are re­quired by everyone using a computer. Examples of service pro­grams 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 program­mers must deal. The first type is the coding error. Such errors are syntax errors that prevent the language processor from suc­cessfully 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 translat­ed, 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 spec­ifications.

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 fol­lowing 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.


ИТОГОВЫЙ ТЕСТ

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 in­structions

4. I / О______ match the physical and electrical charac­
teristics 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 pro-

cessing results from the computer sys­tem;

2. Input b) the unit performing arithmetic opera-

tions called for in the instructions;


Английский язык. Основы компьютерной грамотности 158

3. Output с) the unit coordinating all the activities of

various components of the computer. It reads information, enterpretes instruc­tions, 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 con-

trol 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 process­ing;

8. CU h) visible units, physical components of a

data processing system;

9. ALU i) the unit that directs the sequence of sys-

tem operations, selects instructions and interpretes them;

10. Program j) a device with a complex network of elec-

tronic circuits that can process informa­tion, make decisions, and replace people in routine tasks.




Поделиться с друзьями:


Дата добавления: 2014-11-18; Просмотров: 1088; Нарушение авторских прав?; Мы поможем в написании вашей работы!


Нам важно ваше мнение! Был ли полезен опубликованный материал? Да | Нет



studopedia.su - Студопедия (2013 - 2024) год. Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав! Последнее добавление




Генерация страницы за: 0.007 сек.