Ch. 1.6: The Programming Process Flashcards
1
Q
What are the suggested steps for writing a program?
A
- Define what the program is to do.
- Visualize the program running on the computer.
- Use design tools such as a hierarchy chart, flowcharts or pseudocode to create a model of the program.
- Check the model for logical errors.
- Type the code, save it, and compile it.
- Correct any errors found during compilation. Repeat steps 5 and 6 as many time necessary.
- Run the program with test data for input.
- Repeat steps 5 through 8 as many time as necessary.
- Validate the results of the program.
2
Q
What is a hierarchy chart?
A
A diagram that graphically depicts the structure of a program with boxes representing each step in the program. Refining tasks into smaller tasks.
3
Q
What is a flowchart?
A
A diagram that shows the logical flow of a program.
4
Q
What is pseudocode?
A
A cross between human language and programming language giving a broad view of the program.