Course detail
Computers and Programming 2
FEKT-BPA-PC2SAcad. year: 2021/2022
Course is focused on the algorithm development and the structure of assigned tasks. Students learn to choose a suitable program for their implementation. The base of structured programming are presented by the programming language C and Wiring. The students obtain the practical experince in the implementation of tasks in Microsoft Visual studio and Arduino IDE. Second part of the course is focused on the programming in MATLAB. The available libraries and simulated tools are presented with respect to the power engineering. Third part of the course is devoted to the visual programming in LabView. The base principles of the algorithm realization are introduced and also linking of the user interface of an application.
Language of instruction
Number of ECTS credits
Mode of study
Guarantor
Learning outcomes of the course unit
- explain the function of the C language statements,
- describe the properties of the basic data types,
- propose a structure for the representation of complex data,
- use functions included in the standard libraries,
- propose an algorithm working with multi-dimensional and one-dimensional array,
- propose an algorithm to sort a list of values,
- create a library of functions,
- create an interactive application.
Prerequisites
Co-requisites
Planned learning activities and teaching methods
Assesment methods and criteria linked to learning outcomes
up to 20 from tests during semester
up to 28 points for the final test at the end of the semester
up to 30 points for an individual project
To pass the course it is necessary to develop an individual project.
Course curriculum
2. structured programming, commands, data types
3. input, output, file, equipment
4. creating of custom function, library of functions, parameter passing
5. algorithms for data processing
6. MATLAB – base of programming
7. MATLAB – standard libraries for electrical engineering and power energy
8. MATLAB – advanced programming
9. MATLAB – Simscape Power Systems.
10. LabView – user interface,
11. LabView – basic libraries
12. LabView – data structures, subprogram processing
13. LabView – utilization in power energy
Work placements
Aims
Specification of controlled education, way of implementation and compensation for absences
Recommended optional programme components
Prerequisites and corequisites
Basic literature
HAVLÍČEK, J., VLACH, J., VLACH, M., VLACHOVÁ, V. Začínáme s LabVIEW. BEN, 2008 (CS)
KARBAB, P. Výpočty a simulace v programech Matlab a Simulink, COMPUTER PRESS, 2006 (CS)
STROUSTRUP, B. The C++ Programming Language, 4th Edition, Addison-Wesley, 2013. (EN)
Recommended reading
Elearning
Classification of course in study plans
Type of course unit
Lecture
Teacher / Lecturer
Syllabus
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
Teacher / Lecturer
Syllabus
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.
Elearning