- •Unit 1. Computer Programming
- •Fortran
- •End user
- •Unit 2. Program Design
- •Steps in Computer Program Development
- •Evolutionary development concurrent activities
- •0A programmers
- •Unit 3. Programming Languages
- •Programming languages
- •Unit 4. Comparing Programming Languages
- •Comparing Programming Languages Technical factors
- •Political factors
- •Language vs Compiler for the Language
- •Tool Support and Documentation
- •Criteria for Comparing Programming Languages
- •Write in c
- •Unit 5. Structured Programming
- •Structured Programming
- •Algorithm Development and Pseudocode
- •Unit 6. Object Oriented Programming
- •Vocabulary
Evolutionary development concurrent activities
Discuss whether it is possible for engineers to test their own programs in an objective ways.
Listening
Task 10. You will hear Lucy Boyd, a software developer, explaining how a program is produced. Listen and write down what you hear.
Translation
Task 11. Translate the following sentences into English.
Если вам удалось написать программу, в которой транслятор не обнаружил ошибок, обратитесь к системному программисту – он исправит ошибки в трансляторе.
В природе программирования лежит то, что нет соотношения между "размерами" самой ошибки и проблем, которые она влечет.
Если отладка – процесс удаления ошибок, то программирование должно быть процессом их внесения.
Машинная программа выполняет то, что вы приказали ей делать, а не то, что бы вы хотели, чтобы она делала.
Сложность программы растет до тех пор, пока не превысит способности программиста.
Если бы архитекторы строили здания так, как программисты пишут программы, то первый залетевший жук разрушил бы цивилизацию.
Никогда не выявляйте в программе ошибки, если вы не знаете, что с ними делать дальше.
Большинство существующих программ создается исключительно для нужд компьютера – для того, чтобы работало нужное человеку меньшинство.
Task 12. Work in pairs and translate the following poem by Gene Ziegler into Russian.
0A programmers
0A young programmers began to work online,
One didn’t pay for Internet, and then there were 9.
9 young programmers used copies that they made,
But one was caught by FBI, and then there were 8.
8 young programmers discussed about heaven,
One said, “It’s Windows 95”, and then there were 7.
7 young programmers found bugs they want to fix,
But one was fixed by the bug, and then there were 6.
6 young programmers were testing the hard drive,
One got the string “Format complete”, and then there were 5.
5 young programmers were running the FrontDoor,
The BBS of one was hacked, and then there were 4.
4 young programmers worked using only C,
One said some good about Pascal, and then there were 3.
3 young programmers didn’t know what to do,
One tried to call the on-line help, and then there were 2.
2 young programmers were testing what they done,
One got a virus in his brain, and then there were 1.
1 young programmer was as mighty as a hero,
But tried to speak with users, and then there were 0.
Boss cried: “Oh, where is the program we must have?!”
And fired one programmer, and then there were FF.
Unit 3. Programming Languages
Warm-up
Task 1. Read the saying below and mull it over in pairs.
Alan Perlis once said: “A language that does not affect the way you think about programming is not worth knowing”.
Task 2. Can you identify these programming languages?
A.
10 REM Program to compute integer sum
50 PRINT “from 1 to whatever integer you specify.” 60 PRINT “Enter any positive integer up to “MAXINT%”:”; 70 INPUT NUMBER 80 IF (NUMBER > 0) AND (NUMBER <= MAXINT) THEN GOTO 90 ELSE GOTO 150 90 FOR COUNT% = 1 TO NUMBER 100 TOTAL# = TOTAL# + COUNT% 110 NEXT COUNT% 120 PRINT “The sum of all integers from 1 to ”NUMBER 130 PRINT “is “TOTAL# 140 GOTO 160 150 PRINT “This number is out of bounds!” 160 END
|
|
B.
/*numbercount.c*/ #include <stdio.h> #define MAXINT 32767
main () { int count, number; long int total;
total = 0; printf(“This program calculates the sum of all integers\n”); printf(“from 1 to whatever integer you specify.\n”); printf(“Enter any positive integer up to %d:”,MAXINT); scanf(“%d”,&number); if (number > 0 && number <= MAXINT) for (count = 1; count <=number; count++) total = total + count; printf(“The sum of all integers from 1 to %d\n”,number); printf(“is % d\n”,total); else printf(This number is out of bounds! \n”); } |
C.
Program Number Count (input, output);
var count, number: integer; total: real;
begin total :=0.0; write|n (‘This program calculates the sum of all integers’); write|n (‘from 1 to whatever integer you specify.’); write (‘Enter any positive integer up to ’,maxint,’:’); read|n (number); if (number > 0) and (number <=maxint) then begin for count = 1 to number do total := total + count; write|n (‘The sum of all integers from 1 to ‘,number); write|n (‘is ‘,total) end else writein (‘This number is out of bounds!’) end.
|
Reading
Task 3. Read the text and fill in the gaps using the list of words below.