Course detail

Computers and Programming 2

FEKT-BKC-PC2SAcad. year: 2020/2021

The course is focused on acquiring the skills of algorithmization and structuring the assigned task. Students also learn to choose a suitable environment for its implementation.
In the first part of the course the basics of programming in C language are presented. Students will gain practical experience in the implementation of tasks in a console application in the Microsoft Visual Studio environment, or Dev-C ++.
The second part of the course is focused on programming in the MATLAB environment. Available libraries and simulation tools with regard to use in energy are presented.
The third part of the course is devoted to visual programming in the LabView environment. The basic principles of the implementation of algorithms in this environment and the connection to the user interface of the application are introduced.

Language of instruction

Czech

Number of ECTS credits

5

Mode of study

Not applicable.

Learning outcomes of the course unit

The student is able to:
- explain the basic C language statements; describe the properties of the basic data types; use functions included in the standard libraries; propose an algorithm working with multi-dimensional and one-dimensional array, I/O functions, conditions and cycles; create a own functions;
- define the available libraries and simulated tools with respect to the power engineering in the MATLAB part;
- within the LabVIEW part to explain the basic principles of implementing algorithms in this environment and to create algorithms in the user interface of the application.

Prerequisites

The subject knowledge on the secondary school level is required. Further the basic knowledge of working with files in the Microsoft Windows environment is desirable.

Co-requisites

Not applicable.

Planned learning activities and teaching methods

Techning methods include lectures and computer laboratories laboratories. The student follows the instructions of teachers in each part of the course.

Assesment methods and criteria linked to learning outcomes

1. part - programming in C - up to 33 points,
2. part - programming in Matlab - up to 33 points,
3. part - programming in LabView - up to 34 point.
The student must complete compulsory activities in all 3 parts.

Course curriculum

1. C - console application in Dev-C++ or in Visual Studio, input/output functions,
2. C - variables and data types , operators, conversion, statements,
3. C - statements and expressions, conditions (e.g. if, if-else) and cycles (for, do-while, while), arrays,
4. C - functions, creating of custom function, library of functions, parameter passing,
5. MATLAB – base of programming,
6. MATLAB – standard libraries for electrical engineering and power energy,
7. MATLAB – advanced programming,
8. MATLAB – Simscape Power Systems,
9. LabView – user interface,
10. LabView – basic libraries,
11. LabView – data structures, subprogram processing,
12. LabView – utilization in power energy.

Work placements

Not applicable.

Aims

The aim of the course is to teach students the general programming habits and algorithmization of complex problems. In the course the different programming languages are presented. The graduate of the course should be able to choose a suitable tool according to the type of problem and implement basic algorithms.

Specification of controlled education, way of implementation and compensation for absences

The content and forms of instruction in the evaluated course are specified by a regulation issued by the lecturer responsible for the course and updated for every academic year.

Recommended optional programme components

Not applicable.

Prerequisites and corequisites

Not applicable.

Basic literature

DOŇAR, B., ZAPLATÍLEK, K. MATLAB - tvorba uživatelských aplikací. BEN, 2004. (CS)
HAVLÍČEK, J., VLACH, J., VLACH, M., VLACHOVÁ, V. Začínáme s LabVIEW. BEN, 2008. (CS)
HEROUT, P. Učebnice jazyka C. KOPP, 2004.
KARBAB, P. Výpočty a simulace v programech Matlab a Simulink. COMPUTER PRESS, 2006. (CS)
PECINOVSKÝ, R., VIRIUS, M. Učebnice programování: základy algoritmizace. Praha: Grada Publishing, 1997
PROKOP, J. Algoritmy v jazyku C a C++. Praha: Grada Publishing, 2008.
STROUSTRUP, B. The C++ Programming Language, 4th Edition, Addison-Wesley, 2013. (EN)
VIRIUS, M. Jazyky C a C++. Komplexní kapesní průvodce. Praha: Grada Publishing, 2005

Recommended reading

Not applicable.

Classification of course in study plans

  • Programme BKC-SEE Bachelor's 1 year of study, summer semester, compulsory

Type of course unit

 

Lecture

26 hod., optionally

Teacher / Lecturer

Syllabus

1. Algorithmization (extensions of basic knowledge from the previous semester). Definition of the task, the definition of inputs / outputs, expressing
an algorithm in meta-language, rewritting into programming language.
2. Introduction to C language. Basic types of variables, derived types, constants, arrays.
3. Expressions, arithmetic conversions, arithmetic operators, shift operators, relation operators, logical operators, bitwise operators, assignment
operators, operator priority.
4. Strings and their operators, library functions, standard library string.h.
5. Commands, compound statements, branching commands, cycles and control commands. Flowchart.
6. Function. Declaration of functions, methods of function calling, treatment events, recursion of functions.
7. Advanced data types. Union, enum, dynamic variable, pointer.
8. Objects. Lexical elements, constants and strings, classes, objects, object types.
9. User interface of Microsoft Visual C++ Studio. Graphical components.
10. Algorithms I. Finding maxima and minima, sorting.
11. Algorithms II. Programming with arrays, matrices operations.
12. Algorithms III. Programming with files in Windows.
13. Algorithms IV. Database systems. Records, sorting, searching, statistics. Linking of databases.

Exercise in computer lab

26 hod., compulsory

Teacher / Lecturer

Syllabus

1. Algorithmization (extensions of basic knowledge from the previous semester). Definition of the task, the definition of inputs / outputs, expressing
an algorithm in meta-language, rewritting into programming language.
2. Introduction to C language. Basic types of variables, derived types, constants, arrays.
3. Expressions, arithmetic conversions, arithmetic operators, shift operators, relation operators, logical operators, bitwise operators, assignment
operators, operator priority.
4. Strings and their operators, library functions, standard library string.h.
5. Commands, compound statements, branching commands, cycles and control commands. Flowchart.
6. Function. Declaration of functions, methods of function calling, treatment events, recursion of functions.
7. Advanced data types. Union, enum, dynamic variable, pointer.
8. Objects. Lexical elements, constants and strings, classes, objects, object types.
9. User interface of Microsoft Visual C++ Studio. Graphical components.
10. Algorithms I. Finding maxima and minima, sorting.
11. Algorithms II. Programming with arrays, matrices operations.
12. Algorithms III. Programming with files in Windows.
13. Algorithms IV. Database systems. Records, sorting, searching, statistics. Linking of databases.