INTRO TO COMPPROG Flashcards
the process of developing and implementing various sets of instructions, called computer programs, to enable a computer to do a certain task.
computer programming
what is computer programming?
the process of developing and implementing various sets of instructions, called computer programs, to enable a computer to do a certain task.
parts of problem solving phase?
- Analysis and Specification
- General Solution (Algorithm).
- Verify.
Understand (define) the problem and what the solution must do.
Analysis and Specification.
Develop a logical sequence of steps to be used to solve the problem.
General Solution (Algorithm)
Follow the steps exactly to see if the solution really does solve the problem
Verify
parts of implementation phase?
- Concrete Solution (Program)
- Test
- maintenance
two parts of programming process?
- problem solving phase
- implementation phase
Translate the algorithm into a program using any programming language.
Concrete Solution (Program
Have the computer follow the instructions. Then manually check the results. If you find errors, analyze the program and the algorithm to determine the source of the errors, and then make corrections.
Test
third phase of implementation phase
maintenance
a step-by-step procedure for solving a problem in a finite amount of time.
algorithm
two main ways that algorithms can be represented
pseudocode and flowcharts.
detailed yet readable description of what a computer program must do, expressed in a formally-styled natural language rather than in a programming language.
pseudocode
formalized graphic representation of a logic sequence, work or manufacturing process, organization chart, or similar formalized structure.
flowchart
use simple geometric symbols and arrows to define relationships.
flowchart
Characteristics of Pseudocode
- Statements flow in a logical order
- Statements are clearly defined
- Statements are often numbered sequentially
- Statements do not have more than one meaning (not ambiguous)
- May use variables to represent data
a set of rules, symbols, and special words used to construct a program
programming language
Translating an algorithm into a program is called
coding the algorithm
errors in program
bugs
process of detecting and removing of existing and potential errors in a software code that can cause it to behave unexpectedly or crash
Debugging
The concrete solution or the program is tested by
running (executing) it on the computer.
three types of errors
- Syntax errors
- Runtime errors
- Logic errors
represent grammar errors in the use of the programming language. This type of error can be detected by the computer.
Syntax errors