Ch. 1.6: The Programming Process Flashcards

1
Q

What are the suggested steps for writing a program?

A
  1. Define what the program is to do.
  2. Visualize the program running on the computer.
  3. Use design tools such as a hierarchy chart, flowcharts or pseudocode to create a model of the program.
  4. Check the model for logical errors.
  5. Type the code, save it, and compile it.
  6. Correct any errors found during compilation. Repeat steps 5 and 6 as many time necessary.
  7. Run the program with test data for input.
  8. Repeat steps 5 through 8 as many time as necessary.
  9. Validate the results of the program.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a flowchart?

A

A diagram that shows the logical flow of a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is pseudocode?

A

A cross between human language and programming language giving a broad view of the program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly