| Course title | Computer Programming |
|---|---|
| Course code | OPT/PROGB |
| Organizational form of instruction | Lecture + Lesson |
| Level of course | Bachelor |
| Year of study | 2 |
| Semester | Winter |
| Number of ECTS credits | 5 |
| Language of instruction | Czech |
| Status of course | Compulsory |
| Form of instruction | Face-to-face |
| Work placements | This is not an internship |
| Recommended optional programme components | None |
| Lecturer(s) |
|---|
|
| Course content |
|
- Basic terms. Editor, preprocessor, compiler, linker, debugger. Source and header files. Comments. Preprocessor commands. The main() function. - Data types and operators. Integer data types, char data type, floating-point data types, bool data type, strings. Binary operators, special unary operators, assignments operators, bool operators, relation expressions. - Inputs and outputs ? streams. Formatted uotput ? manipulators. Header files iostream and iomanip. - Statements. Single and compound statement. If-else statement, switch statement, loop statements ? while, for, do-while. Continue and break statements, goto statement. - Declaration of the arrays. One-dimensional array, two and multi-dimensional arrays, structured data types. - Functions. Function definitions, parameter declarations, function body, returned value. Calling a function, function prototype and its placement in the source and header files. - Pointers and references. Pointer declaration, dereferencing and referencing operators. Pointer arithmetic. Array names as pointers. References. - Object-based programming, classes. Basic terms. Class construction, declaration section, implementation section, access specifiers, inline functions. Constructor, destructor. Friend classes. - Programming of the optical calculations. Programming of the paraxial parameters and abberrations of the optical system consisting of centerd spherical surfaces. Feders relations.
|
| Learning activities and teaching methods |
| Lecture |
| Learning outcomes |
|
Elementary basics of C.
Knowledge Define the main ideas and conceptions of the subject, describe the main approaches of the studied topics, recall the theoretical knowledge for solution of model problems. |
| Prerequisites |
|
No prior requirements.
|
| Assessment methods and criteria |
|
Oral exam
Knowledge the scope of the course topics (examination), active attendance in seminars |
| Recommended literature |
|
| Study plans that include the course |
| Faculty | Study plan (Version) | Category of Branch/Specialization | Recommended semester | |
|---|---|---|---|---|
| Faculty: Faculty of Science | Study plan (Version): Digital and Instrument Optics (2019) | Category: Physics courses | 2 | Recommended year of study:2, Recommended semester: Winter |