- •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
Unit 2. Program Design
Warm-up
Task 1. In pairs, try to think of an answer for the question:
What is programming?
Decide which of the definitions below is the most appropriate? Give a reason for your choice.
|
|
A pastime similar to banging one's head against a wall, but with fewer opportunities for reward.
Reading
Task 2. Put these five stages of programming in the correct sequence.
Design a solution 1. _____
Code the program 2. _____
Document and maintain the program 3. _____
Clarify the problem 4. _____
Test the program 5. _____
Task 3. To which stage does each of these steps belong?
Clarify objectives and users _____
Debug the program _____
Write programmer documentation _____
Do a structured walkthrough _____
Select the appropriate programming language _____
Task 4. Read the text and compare your answers for Tasks 2 and 3.
Steps in Computer Program Development
The steps in the development of each of the computer programs that make up the computer program component of a system are:
Although the programmer is responsible for |
|
writing the computer program, the system analyst must communicate the computer program requirements to the programmer. The function of each program was defined for the programmer when functions were allocated during system design. Detailed data flow diagrams (DFD) are prepared for each program from the decomposed DFDs created during the design phase. These DFDs define the function of each program.
In program planning, the logic to be used to solve the problem is developed. Algorithms, computer program logic flowcharts, and structure charts are useful tools for program planning. Algorithms are sets of rules or instructions used to accomplish tasks. They may be stated as formulas, decision tables, or narratives.
The next step, writing, or coding, a program, is the actual writing of computer instructions. These instructions will be translated to machine code and followed by the computer; they should follow the steps of the program logic plan.
Several programming languages, particularly COBOL, PL/I, and RPG, are commonly used to solve business problems. In addition to these traditional languages, organizations using database management systems may choose to generate programs using the query language of the DBMS. These query languages are part of a package of programming tools known as fourth-generation languages. Each language has its advantages and disadvantages. Most computer installations have a standard language used by their programmers. Programmers usually are not given a choice of language unless some special circumstances exist.
Testing and debugging a program involve:
translating the coded program into machine language, a process called compilation;
testing the translated program with sample data and checking the result.
If the results of testing are not correct, the program is said to have "bugs". Debugging is the process of correcting computer programs to obtain correct results.
The last step is to complete the documentation for the program. The documentation must include a statement of the purpose of the program, a description of the solution logic, a listing of the program instructions, and sample outputs from the completed programs. Information provided to the programmer by the analyst, such as descriptions of program inputs, outputs, and files, should be included. Instructions to operators explaining how the program is to be used must be written before the program documentation is completed.
Language work
General and Special Questions |
Word order in general questions: auxiliary verb + subject + verb e.g. Have you ever used a computer? Word order in special questions is as following: question word + auxiliary verb + subject + verb e.g. How long have you been restoring the data? If there is more than one auxiliary verb, we put only the first auxiliary in front of the subject: e.g. How long has this program been used?
|
Task 5. There are answers to questions about the text. Write the questions.
There are five main steps in the computer program development.
For writing the computer program.
It is developed in program planning.
As formulas, decision tables, or narratives.
Yes, it is the actual writing of computer instructions.
No, programmers usually are not given a choice of languages.
It is called compilation.
When the results of testing are not correct.
To obtain correct results.
They must be written before the program documentation is complete.
Task 6. Choose the correct word to complete each sentence. You may have to change some words slightly.
compilation, compiler, compile, compiled
It took weeks __________ the new customer database.
A source program cannot be directly processed by the computer until it has been __________.
If the errors are removed and the program re-run, the process of __________ starts all over again, but this time the __________ program will be executed.
A computer needs its own __________ for the various high-level languages if it is expected to accept programs written in those languages.
program, programmer, programming, programmable
The __________ CD-player allows the user to change the order tracks are played in.
She __________ the VCR to come on at eight.
Most computer __________ make a plan of the program before they write it. This plan is called a flowchart.
It is unusual for a __________ to work correctly the first time it is tested.
bug, debug, debugger debugging
The best compilers usually include an integrated __________ which detects syntax errors.
New programs need __________ to make them work properly.
Once you have written your program you have to test it with sample data to see if there are any __________ or errors.
instruction, instruct, instructed, instructor
The next step is to design an algorithm, which is a step-by-step plan of __________ used to solve the problem.
We have been __________ that a decision will not be made before the end of the week.
Our maths __________ explained to us the principles of binary arithmetic.
Speaking
Task 7. Say what has happened in the cartoon. What do you think this cartoon is about? Write a caption for the last picture. Translate each caption into English.
Как было предложено организатором разработки |
Как было описано в техническом задании |
Как было спроектировано ведущим системным специалистом |
Как было реализовано программистами |
Как было внедрено
|
____________________ |
Task 8. Work in pairs and discuss the following:
Many would argue that computer’s actions are merely consequences of how it was programmed, and thus a computer cannot possess free will. In turn, a computer shouldn’t be held responsible for its actions.
Is human’s mind a computer?
Are humans programmed at birth?
Are humans responsible for their actions?
Writing
Task 9. Look at the scheme below and describe activities and connections of the evolutionary development.