Skip to main content
Skip header
Terminated in academic year 2009/2010

Algoritmization and Programming

Type of study Bachelor
Language of instruction Czech
Code 455-0519/01
Abbreviation AP
Course title Algoritmization and Programming
Credits 5
Coordinating department Department of Measurement and Control
Course coordinator doc. RNDr. Jindřich Černohorský, CSc.

Subject syllabus

Lectures:
Introduction - programming languages, computer programming, debugging and testing, documentation. Design of a simple program, program structure. Basic symbols of the language. Data types - classification.
Simple standard types. Short and long types. Operations with standard type. Ordinal types.

Variables ,data objets - declaration and definition. Variables, constants, types. Type checking, type compatibility. Program structure. Statements, assignmnet statements.
Library module MATHLIB. Conditional statements - IF, CASE. Library module IO.
Loop statements - WHILE, REPEAT, LOOP. EXIT statement. Library module. Evaluation of expressions. Conversion functions.
FOR loop. ARRAY type and its structure. Data input and output.
Procedures - definition and calls. Local variables.
Formal and actual parameters. Call by reference and by value.
Modules - modular structure of a program. Definition and implementation part of a module.
Export and import of names, opaque types.
Enumeration types, subrange types, set types.
RECORD types. WITH statement.Variant RECORD type.
Function procedures. Open ARRAY parameter. Procedural types.
POINTER types, dynamical data structures. Dynamical memory allocation. Module STORAGE.


Computer labs:
Algorithmization. Introduction to the TopSpeed development environment. Language , documentation. Example of a simple program.
Working in TopSpeed environment. Basic program structure. 1.program submission (3 simple tasks according to the own student's selection)
Program debugging, simple programs testing with help of instruction list. Expressions, type conversions, overtyping (type casting).
Basic input and output procedurers. Assign statement. Simple examples. 2nd program submisssion. 1st program handing in.
2nd program testingu. Examples of algorithms based on cycles. Check out test no.1.
FOR loop examples, program testing. 3rd program submission.

Procedures, 3rd program testing.
RECORDS, structured data types, program testing. 2nd program handing in.
Modules,program testing, 4th program submision, 3rd program handing in
Checkout test no 2, program testing.
Procedural types. Program testing.
POINTER using. 4th program handing in. 5th program testing.
Dynamic data types. Checkout test no 3.
Handing in of ready programs.

Literature

No literature has been specified for this subject.

Advised literature

No advised literature has been specified for this subject.