Course: Computer Programming

» List of faculties » PRF » OPT
Course title Computer Programming
Course code OPT/PROGB
Organizational form of instruction Lecture + Lesson
Level of course Bachelor
Year of study not specified
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)
  • Vyšín Ivo, RNDr. CSc.
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
  • Andrews, M. (1997). Programujeme v jazyce C++. Computer Press, Praha.
  • Čechová, M. (1989). Elektromagnetické vlny. UP Olomouc.
  • Rusinov, M.M. a kol. (1984). Vyčislitělnaja optika. Mašinostrojenije, Leningrad.
  • Stroustrup, B. (1997). C++ Programovací jazyk. Praha.
  • Večerka A. (2000). Jazyk C++ Popis jazyka s příklady. Skriptum UP Olomouc.


Study plans that include the course
Faculty Study plan (Version) Category of Branch/Specialization Recommended year of study 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