Студопедия

КАТЕГОРИИ:


Архитектура-(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)

Structured languages




Task IV Translate the following sentences, paying attention to the Participle. Translate the underlined words.

1. Logo is a structured language that is available for many microcomputers.

2. Basic is an all-purpose language meaning that you can do almost in Basic.

3. Your whole program can consist of series of statements defining routines and then a few statements calling this routines in the correct order.

4. Logo doesn’t do “turtle graphics ”, it is a complete language.

5. Pascal has some features that make structured programming easier.

6. Pascal also has certain requirements that make you plan your program carefully.

7. One disadvantage of Pascal is that it is often a compiled language.

 

**Task V Read and translate the text.

You've already learned something about the BASIC language. You will prob­ably go on someday to learn other programming languages as well. Different languages are designed for different purposes. BASIC is an all-purpose language, meaning that you can do almost anything in BASIC. But some things will be rather hard to do in BASIC. For example, although you have seen how to write programs with a top-down structure in BASIC, other languages make it easier to write such structured—or modular— programs.

Logo is a structured language that is often taught in schools and is avail­able for many microcomputers. You may be familiar with Logo because many schools use it to do "turtle graphics. "A turtle is a cursor on the screen. It's called a turtle because it is often shaped like one. You can tell the turtle to move left, right, up, down, or turn a certain number of degrees. You can see the turtle move on the screen. The turtle can also draw on the screen. If you tell it to put its pen down, it traces a line as it moves, or it can pick up the pen and not draw a line. (There are also mechanical turtles that move on the floor.)

Logo is a language that can help you to write structured programs. For example, in Logo you can tell the turtle to carry out a set of commands that draws a rectangle on the screen. Then you can call that set of commands "box." Each time you tell the turtle to "DO BOX," it will draw the rectangle. "Box" has become a module of a program. You can create a whole series of routines that draw different shapes or parts of pictures. Then you can combine them all in one statement and call the whole thing "house." Then you can make "house" part of another routine, and so on. Your whole program can consist of a series of statements defining different routines and then a few statements calling these routines in the correct order.

Logo doesn't just do turtle graphics, it is a complete language. But whether you use the language to draw a house or compute complex mathematical functions, the modular structure of the language is the same.

Pascal is also a structured language. Pascal has some features that make structured programming easier. For example, it allows you to indent the statements in a loop so that you can see the beginning and the end of each loop. Pascal also has certain requirements that make you plan your program carefully. For example, it requires you to define all your variables before you begin.

One disadvantage of Pascal is that it is often a compiled language. A compiled language is one that must be translated by a compiler into code that the computer can understand before the program can be run.

 

**Task VI. Answer the following questions on the text:

1. What language do you use to write a modular program?

2. What computer language is often taught at schools?

3. What is “a turtle”? What can you tell the turtle to do?

4. How can Logo help you to write structured programs?

5. What kind of language is Logo?

6. In what way does Pascal make structured programming easier?

7. What is one of disadvantages of Pascal?

 

***Task VII. Look through the text and make your own definitions of the terms:

1) a compiled language

2) a complete language

3) a structured language

 

Task VIII. Rewrite the following sentences, use the equivalents instead of modal verbs:

1). This language can make structured programming easier.

2). You must write a modular program.

3). He ought to follow the order.

4). You may use my computer for some time.

5). People couldn’t perform such calculations so quickly ten years ago.

6). You must save this data externally.

7). I can carry out different operations with the help LOGO.

8). He had to use modular structure, as the program was complex.

 




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


Дата добавления: 2017-02-01; Просмотров: 59; Нарушение авторских прав?; Мы поможем в написании вашей работы!


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



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




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