CH 2.1
Debugs
locate and correct errors in a computer program code
Pseudocode
A fake code; Are used to create models or "mock ups" of programs; An informal language that has no syntax rules, and is not meant to be compiled or executed;
Logic Errors
A mistake that does not prevent the program from running, but causes it to produce incorrect results. (Mathematical mistakes are common causes of logic errors.)
Algorithm
A set of well-defined logical steps that must be taken to perform a task.
Flowcharts
A tool programmers use to design programs; Is a diagram that graphically depicts the steps that take place in a program.
Designing a Program
1. Understand the task the program is to perform; 2. Determine the steps that must be taken to perform the task.
Types of symbols in a flowchart
Ovals - terminal symbols, appear at the top and bottom. Parallelograms - between the terminal symbols. Rectangles - processing symbols. Each symbol is connected by arrows which represents the flow of the program.
Program Development Cycle
Series of steps programmers use to build computer programs, consisting of (1) Design the program, (2) Write the code, (3) Correct syntax errors, (4) Test the executable code, (5) Debug the code, and (6) Document solution.