Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
английский / МО темы / Programming.docx
Скачиваний:
56
Добавлен:
20.04.2015
Размер:
1.74 Mб
Скачать

Language work: Problem and solution

Study these ways of linking a problem and a solution.

Problem: get rid of logic errors

Solution: hand-test the program

You can get rid of logic errors by hand-testing the program.

To get rid of logic errors, hand-test the program.

Task 7. Match these problems and solutions. Link them following the examples above.

Problems

Solutions

1

connect a computer to a

a

write code to check a peripheral

telephone line

is present before any data is sent

2

identify items for pricing

b

use the debug command

3

add extra facilities to a computer

с

add more memory

4

get more file storage space

d

format the disk

5

find syntax errors

e

use a removable disk

6

avoid marking the surface of

a CD-ROM

f

install an expansion card

7

improve the speed of your computer

g

install a modem

8

avoid system errors

h

fit a bigger hard disk

9

prepare a new disk for use

i

use barcode labels

10

transfer information between

i

hold it by the edges

computers

Task 8. Suggest solutions to these problems. Then link the problem and your solution.

  1. Make sure there are no viruses on a floppy disk.

  2. Prevent unauthorized access to a network.

  3. Avoid the risk of losing data.

  4. Avoid eye-strain when using computers.

  5. Avoid back problems when using computers.

Task 9. Draw a flowchart for one of these activities. Then compare your completed flowchart with other students in your group.

  • using a payphone

  • planning a holiday

  • choosing a new computer

  • preparing for an important exam

Task 10.Write your own description of the flowchart below.

A 'Start' symbol indicates where the program begins. When the program has started, the initial cost of the item is input. A decision is then taken on which rate of tax to use.This depends on the initial cost. If the cost is greater than 100, the program follows the 'Yes' route and sets the tax rate at 15%. Otherwise the program follows the 'No' route and sets the tax rate at 10%.The two different paths then come back together at the 'connector' symbol and follow the same route.The actual sales tax is now calculated by multiplying the cost by the tax rate. Finally the amount of tax is printed out and theprogram stops.

PART 3

1. Look through the following words. Match them to the corresponding translation.

equation

потреблять,расходовать

list of instructions

блок-схема, составлять блок-схему

guard

издержки, затраты

appropriate sequence

переченькоманд

program logic

выделять,подчеркивать

flowchart

защищать, предохранять, завершать,заканчивать

flowcharting

специальныечерты,характерныеособенности

pictorial representation

псевдокод,псевдопрограмма

predefined symbols

принципнисходящейразработки

specifics

правилапрограммирования

template

наглядноепредставление

pseudocode

логическая последовательность выполнения программы

burden

логическая схема выполнения (операций) в цикле

programming rules

уравнение, приравнивание

consume

построениеблок-схемы

emphasize

заранеезаданныесимволы

top-down approach

шаблон,маска,образец,эталон

looping logic

необходимая (требуемая) последовательность

2. Read the text and say how you understand the term “computer programming”.

Text 1. COMPUTER PROGRAMMING

Programming is the process of preparing a set of coded instructions which enables the computer to solve specific problems or to perform specific functions. Theessence of computer programmingis the encoding of the program for the computer by means of algorithms. 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 it, that 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.

Программирование процесса подготовки набор закодированных инструкций, который позволяет компьютеру для решения конкретных задач или для выполнения определенных функций. Theessence компьютерных programmingis кодирования программы для компьютера, с помощью алгоритмов. Дело в том, что любая проблема выражается в математических терминах, оно содержит формул, уравнений и расчетов. Но компьютер не может манипулировать формул, уравнений и расчетов. Любая проблема должна быть специально обработанные на компьютере, чтобы понять, что это - закодированы или запрограммированы.

Фазы, в которой компьютер системы программ написаны называется стадии разработки. Программы списков инструкций, которые будут сопровождаться блок управления центрального процессора (CPU). Инструкциям программы должны быть полными и в соответствующей последовательности, иначе неправильные ответы будет результат. Чтобы защититься от этих ошибок в логике и к документу логического подхода программы, логика должны быть разработаны планы.

Есть два распространенных методов планирования логику программы. Первый способ блок-схем. Блок-схема представляет собой план в виде графических или графическое представление, которое использует заранее определенные символы для иллюстрации логики программы. Поэтому, "картинка" логические шаги должны быть выполнены на компьютере. Каждый из стандартных фигур символ обозначает общую работу. Символ форме сообщает о характере общей операции, и специфику написано в символ. Пластиковые или металлические руководство называемый шаблон используется, чтобы рисовать символы легче.

Второй метод для планирования программной логики называют псевдокод. Псевдокод является имитацией фактической инструкциям программы. Это позволяет программе-подобную структуру без затрат на программирование следовать определенным правилам. Псевдокод меньше времени для профессиональных программистов, чем блок-схем. В нем также подчеркивается сверху вниз подход к структуре программы.

Псевдокод имеет три основные структуры: последовательность, решение, и цикл логики. С помощью этих трех структур, все необходимые логика может быть выражено.

3. Find English equivalents to the following words and word combinations in the text 1:

Совокупность закодированных команд; суть компьютерного программирования; кодирование посредством алгоритма; формулы, уравнения, вычисления; обработать особым образом; перечень команд; необходимая последовательность; защищать от ошибок; составлять план логической последовательности; общепринятая методика; логическая последовательность выполнения программы; построение блок-схемы; наглядное представление; заранее заданные символы; шаблон; псевдопрограмма; без издержек; выделять принцип нисходящей обработки; расходовать меньше времени; логическая схема выполнения операций в цикле; необходимая последовательность операций.

4. Answer the following questions using the information from the text:

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?

5.Find Russian equivalents to the following English terms:

Program: access program; application program; archived program; binary program; common program; compatible / in-compatible program; control / management program; database program; debugging program; educational / teaching / training program; free program; general-purpose program; high-performance program; off-line program; on-line program; operating (-system) program; processing program; protected-mode program; remote program; running program; self-loading program;simulation program; support program; utility program; virus-detection program; watch-dog program.

Программа в двоичном коде; прикладная программа; (не) совместимая программа; бесплатная программа; про-грамма отладки; сторожевая программа; дистанционная программа; программа моделирования; сервисная про-грамма; вспомогательная программа; программа для дос-тупа (к данным); заархивированная программа; программа, работающая с базой данных; обучающая программа; программа, выполняемая с большой скоростью; универсальная программа; программа, выполняемая в защищен-ном режиме; программа обработки данных;программа операционной системы (системная программа); выполняемая программа; сетевая /несетевая программа; самозагружающаяся программа; часто используемая (распространенная) программа; программа управления; программа обнаружения вирусов.

6.Speakaboutprogramming.

7. Lookthroughthetermsfromthetext 2.

programminglanguage — язык программирования

codedform — кодированный вид; кодированное представление

toconvey — передавать; сообщать

toimprove — улучшать, совершенствовать

machine-orientedlanguage — машинно-ориентированный язык

business-orientedlanguage — язык для (программирования) экономических задач

problem-orientedlanguage — проблемно-ориентированный язык

stringofbinary — строка двоичного представления

datahandling — обработка данных; работа с данными

field-namelength — длинаимениполя

incorporatefeatures — включать свойства, особенности

versatile — многофункциональный; разносторонний;

универсальныйgenerous — большой, значительный (о количестве)

mathematicalrelationship — математическая связь (соотношение)

8. Read the text 2 and find English equivalents to the following words and word combinations:

Языки программирования; блок-схема; кодированная форма; вид, удобочитаемый для компьютера; в соответ-ствии с набором правил; представить логические шаги программы; таким образом; совершенствовать языки про¬граммирования; машинно-ориентированные языки; про¬блемно-ориентированные языки; обычный термин; язык для программирования экономических задач; обработка информации; операции по вводу-выводу данных; гиб¬кость; идентифицировать поле и его цели; решение проблем математического характера; сферы научного применения; универсальный язык; включать свойства; уникальные воз¬можности; многофункциональный и самый мощный из языков программирования.

Text 2. PROGRAMMING LANGUAGES

Let's assume that we have studied the problem, designed alogical plan (flowchart or pseudocode), and are now readyto 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 writewill be recorded in a machine-readable form using a keypunch,key-to-tape, or key-to-disk, or entered directly into computermemory through a terminal keyboard.

The computer cannot understand instructions written in just any old way. The instructions must be written according to a setof rules. These rules are the foundation of a programming language. A programming language must convey the logical stepsof the program plan in such a way that the control unit of theCPU can interpret and follow the instructions. Programminglanguages have improved throughout the years, just as computer hardware has improved. They have progressed from machine-oriented languages that use strings of binary 1s 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.

Давайте предположим, что мы изучили проблемы, предназначенный алогично план (схему или псевдокод), и в настоящее время readyto написать программу инструкций. Процесс написания программы инструкции называется кодированием. В инструкции будет написано на форму, которая называется кодирование инструкций form.The мы writewill быть записаны в машиночитаемой форме с помощью перфоратора, ключ к ленте, или ключ-диск, или вводятся непосредственно в computermemory через терминал клавиатуры.

Компьютер не может понять инструкции написаны на любой старый путь. В инструкции должны быть написаны в соответствии с setof правил. Эти правила являются основой языка программирования.Язык программирования должен передать логический stepsof план программы таким образом, что блок управления theCPU может интерпретировать и следуйте инструкциям. Programminglanguages ​​улучшились на протяжении многих лет, как и компьютерная техника улучшилась. Они прошли путь от машины-ориентированных языков, которые используют струны 1с двоичные и 0s к проблемно-ориентированных языков, которые используют общие математические и / или английских терминов.

Есть более чем 200 проблемно-ориентированных языков. Наиболее распространенными из них являются 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-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.

Кобол

COBOL был наиболее широко используемых бизнес-ориентированного языка программирования. Его название является аббревиатурой от Common-ориентированный язык. COBOL была разработана, чтобы решить проблемы, которые ориентированы на обработку данных и операций ввода-вывода. Конечно, COBOL может выполнять арифметические операции, а также, но его большую гибкость в обработке данных. COBOL также была разработана в качестве самостоятельного документированию языков. Self-документирование языков являются те, которые не требуют много объяснений для того, чтобы быть понята кто-то читает инструкции программы.Самодокументируемыми аспект COBOL стало возможным благодаря ее предложение, структуру и очень щедрый максимальной символическое имя поля длиной 30 символов. В поле имя длиной до 30 символов, имя может четко определить поля и его цели.

FORTRAN IV

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 relationships that can be expressed algebraically can easily be expressed as a FORTRAN instruction. FORTRAN is the most commonly used language for scientific applications.

FORTRAN IV

Языке FORTRAN IV ориентирован на решение проблемы математического характера.Название FORTRAN происходит от сочетания слов формулу перевода. Версия FORTRAN IV была разработана в качестве алгебры на основе языка программирования. Любая формула или те математические отношения, которые могут быть выражены алгебраически может легко быть выражены в виде инструкций FORTRAN. FORTRAN является наиболее широко используемым языком для научных приложений.

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 commonlyused. COBOL and FORTRAN have been available for a longer period of time than PL/I, and many more users work with those languages.

PL / I

PL / I расшифровывается как язык программирования I. Он был разработан как язык общего назначения, включающих особенности, подобные COBOL для работы с данными инструкциями и сходных черт с FORTRAN для математических инструкций. PL / I намного больше, чем сочетание хороших возможностей, как COBOL и FORTRAN, так как он имеет много возможностей, которые являются уникальными. Тем не менее, несмотря на PL / I является одним из самых универсальных и самых мощных языков программирования, это не самый commonlyused. COBOL и FORTRAN были доступны в течение более длительного периода времени, чем PL / I, и многие другие пользователи работают с этих языков.

9. Answer the following questions:

1. What is the process of writing instructions called? 2. What is a code? 3. How must instructions be written? 4. What is the foundation of any programming language? 5. How was the development of programming languages progressing throughout the years? 6. What are the most common problem-oriented languages? 7. What is COBOL? 8. What functions was COBOL designed for? 9. What does FORTRAN serve for? 10. What capabilities has PL/I?

10.Findinthetexts 1 and 2 wordsin the meaning close to the following ones:

Nouns: command; line; characteristic; form; evolution; enumeration; mistake; method; character; manual (instruction); consumption; storage; basics; abbreviation; interpretation; correlation; possibility.

Verbs: include; inform; process; protect; apply; permit; stress; suppose; learn; make up; write; key; explain; define; perfect; advance; decide; execute; demand.

Adjectives: full; incorrect; usual; necessary; accessible; required; considerable; floppy; possible.

11. Translate the following texts in writing using a dictionary.

Соседние файлы в папке МО темы