LESSON 2 Flashcards
PROGRAM DEVELOPMENT CYCLE
- Understanding the problem
- Planning the Logic
- Write the Code
- Translate the Code
- Test the program
- Put the program into production
- Maintain the program
When you plan a program, you think of the output first. After you understand what the desired result is, you can plan what to input and process to achieve it.
- Understanding the problem
The heart of the programming process lies in _________. During this phase of the process, the programmer plans the steps of the program, deciding what steps to include and how to order them.
- Planning the logic
You can plan the solution to a problem in many ways. The two most common planning tools are ________ and ________.
Flowcharts and Pseudocodes
The programmer shouldn’t worry about the syntax of any particular language at this point, but should focus on figuring out what sequence of events will lead from the available input to the desired output.
- Planning the logic
is the sequence of steps necessary to solve any programming problem.
Algorithm
After the logic is developed, only then can the programmer write the program. Despite their differences, programming languages are quite alike in their basic capabilities.
- Write the Code
refers to the rules that define the structure of a language. _______ in computer programming means the rules that control the structure of the symbols, punctuation, and words of a programming language.
Syntax
Even though there are many programming languages, each computer knows only one language: its machine language, which consists of 1s and 0s. Computers understand machine language because they are made up of thousands of tiny electrical switches, each of which can be set in either the on or off state, which is represented by a 1 or 0, respectively.
4. Translate the Code
are mistakes in the source code, such as spelling and punctuation errors, incorrect labels, and so on, which cause an error message to be generated by the compiler.
Syntax errors
A program that is free of syntax errors is not necessarily free of logical errors.
- Testing the Program
results when you use a syntactically correct statement but use the wrong one for the current context.
logical error
Once a program is free of syntax errors, the programmer can test it—that is, execute it with some sample data to see whether the results are logically correct. The process of finding and correcting program errors is called
debugging
Once the program is tested adequately, it is ready for the organization to use. _______ might mean simply running the program once, if it was written to satisfy a user’s request for a special list.
- Put the program into production
After programs are put into production, making necessary changes is called
maintenance