Lec 5
Lec 5
University of Technology
Computer Engineering Department
Computer Principles
Lecture 5
Programming Language
Lecture Layout:
1
Lecture 5 Computer Principles
2
Lecture 5 Computer Principles
3
Lecture 5 Computer Principles
4
Lecture 5 Computer Principles
5
Lecture 5 Computer Principles
6
Lecture 5 Computer Principles
not work. Programming errors are of two types: syntax errors and logic
errors.
Syntax Errors
A syntax error is a violation of the rules of the programming language. For
example, in C ++, each statement must end with a semicolon (;). If the
semicolon is omitted, the program will not run due to a syntax error.
7
Lecture 5 Computer Principles
Logic Errors
A logic error occurs when the programmer uses an incorrect calculation or
leaves out a programming procedure. For example an endless loop.
Step 5: Program Documentation
Documentation consists of written descriptions and procedures about a
program and how to use it. It is not something done just at the end of the
programming process. Program documentation is carried on throughout all
the programming steps. This documentation is typically within the program
itself and in printed documents. In this step, all the prior documentation is
reviewed, finalized, and distributed. Documentation is important for people
who may be involved with the program in the future.
8
Lecture 5 Computer Principles
9
Lecture 5 Computer Principles
Changing Needs
All organizations change over time, and their programs must change with
them. Programs need to be adjusted for a variety of reasons, including new
tax laws, new information needs, and new company policies. Significant
revisions may require that the entire programming process begin again with
program specification.
10
Lecture 5 Computer Principles
13