Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Computer technologies.doc
Скачиваний:
1
Добавлен:
01.04.2025
Размер:
4 Мб
Скачать
☆

Text b. Programming

A Program is a set of instructions written in a programming language and designed to make a computer perform a series of specified tasks that solve a particular problem or achieve a specific goal. Programming is the act of designing and writing programs in a development cycle that has five processes: problem definition, algorithm development, coding, program testing and debugging, and documentation.

In defining the problem, programmers meet with users to identify the output desired and other expectations for a program; they also determine the input and machinery to be used. The programmer constructs the algorithm –the prescribed set of well-defined rules or processes for the solution of the problem – that describes the program's process from start to finish, including the logic structures used. The algorithm can be written in pseudocode or drawn as a flowchart. Programmers use a structured programming approach, building the program in modules in a top-down manner; structure charts show the relationships among the program modules.

The algorithm is coded (translated into statements) in a programming language whose choice is sometimes crucial to the success of the program. Once written out, the program is tested to find bugs, or errors in the syntax or logic. Program testing and debugging involves desk checking, compilation, running the program with sample data, and field testing.

A program's internal documentation covers the trail of development, including comments within the code to remind the original programmer of (or tell other programmers) the meaning of each line of code and the flow of the program's logic. External documentation is prepared for user manuals; on-line documentation supports users while they use the program.

Programming languages are classified as first-, second-, third-, fourth-, or fifth -generation languages.) The first generation of languages, machine language, is written in the binary 0 and 1 values the microcomputer can process. The second-generation assembly languages use alphanumeric mnemonic codes to replace machine commands and need an assembler to translate their code to machine language.

The third-generation procedural languages dominate the programming field and require compilers or interpreters to translate their code to machine language. Compilers translate the whole program at once, storing object code in an executable file. Interpreters translate the source code line by line; the computer can run each line as it is translated. Common third -generation languages in use today include BASIC, Pascal, C, COBOL, FORTRAN, Ada, RPG, and LISP.

The fourth-generation problem-oriented languages bring programming more within the reach of nonprogrammers, starting with object-oriented programming, then the use of application generators and authoring systems, on to the use of HyperTalk, and finally to query and scripting languages.

The fifth-generation natural languages do not produce code but follow human language grammar rules. They are not yet well developed.

Task 9. Give the description (in writing) of programming methods and software design.

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