Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
English for Students of programming.doc
Скачиваний:
3
Добавлен:
09.11.2019
Размер:
545.28 Кб
Скачать

2. Look through the text and find equivalents to the following terms.

сообщают команды

тем шире будет применение компьютера

искусственный интеллект

способным понимать

переводит строку за строкой

компьютерные настройки

выбор имени

занесена в файл

продолжать компилировать

будут обнаружены ошибки

процесс компиляции перезапускается

были удалены из программы

оператор программы

эквивалентный оператор

3. Match the words on the left with the correct definition on the right.

Source program the program that translates the assembly language statements into machine instructions.

A compiler a program error caused by a fault affecting the operating system, usually due to a hardware failure.

Assembler a mistake in a program due to a wrong word or punctuation symbol being used.

Syntax error the program that is entered into the file.

System error a program that converts the whole of a program code before the the program is used.

4. Answer the questions.

1. What methods can be used to translate a high-level language into machine language?

2. How can you explain the term «a line-by-line manner»?

3. What are the functions of a compiler?

4. How does the process of compilation start?

5. What are the steps in the compilation process?

6. What is known as object code?

Unit 5.

A short description of Basic

1. Read the text, try to understand it.

BASIC is a general-purpose high-level programming language, originally designed to develop programs in conversational mode. The name BASIC stands for Beginner’s All-purpose Symbolic Instruction Code. This language is found on most microcomputers because it is user-friendly and easy to learn.

BASIC consists of two main parts: the source language statements – the instructions which form the program – and the system commands which allows us to control and edit a program.

BASIC enables the user to interact with the program while it is being executed which means that data can be input while the program is running. Each instruction is given a line number which defines the logical sequence of statements within the program. Some well-known system commands in BASIC are: RUN, which executes a program held in a BASIC file; LIST, which prints a listing of a program on the screen; and DELETE, which removes a program from a file.

A large number of PC manufacturers adopted BASIC. At present, however, there are so many versions and extensions that programs written for one type of PC are not directly portable to another.

Visual Basic

I f you are new to Visual Basic, or even new to programming, this is the place! Visual Basic from the very ground up will be explained. The first thing you need to know about programming is that it is not magic. The TV and movie plots where the computer is scheming, thinking, entity are completely wrong. If a computer doesn’t have instructions to do something, it will not do anything. Your task as a programmer is to provide those instructions. The flip side if this is that if it is not doing what you intend, then it is because the instructions that it was given were wrong.

The main flaw in this is that you do not give the computer all of the instructions. It gets a lot of them from other programmers at other times in the form of software like the compiler (the program that turns a ‘programming language’ like Visual Basic into instructions that the computer can actually understand), the operating system (the program that turns things like your keystrokes into instructions that the computer can actually understand), and software objects (little packages of self contained program code that do things that a lot of people need).

Think of creating a Visual Basic program like baking a cake: you mix ingredients together, bake them, and pull a cake out of the oven. Similarly, you put forms, modules, and controls together, compile them, and get a Visual Basic application.

What is a Visual Basic Project?

A project is the thing you use to create an application, such as a «traditional» program, a dynamic link library, or an ActiveX control.

In Visual Basic, a project is the group of all the files that make up your program. These might include forms, modules (blocks of code not attached to a form), graphics, and ActiveX controls.

The first thing to keep in mind about a project is that as you create your program, each form, module, graphic, and ActiveX control is saved as an individual file (see a Table).

Common file types in a Visual Basic 6 project

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]