Time of classes:
Tuesday 12:00-14:00, (IK-103)
Lab exercises and solutions
more practice exercises: https://adriann.github.io/programming_problems.html
Test 1 locked projects: locked.zip
Lesson 10: lesson9 ()
Lesson 12 zh2_sample ()
Criteria to pass course
- Students must not miss more than 3 classes in the semester
- Students must not late more than 20 minutes from classes. In the opposite case the student is registered as being absent from the class (However (s)he is still allowed to stay in the class).
- The knowledge of the students will be measured in two tests and at the end of the semester the worse from these two can be retaken
- Students pass a test if their result is not lower then 50%.
- Students get signature if they pass 2 tests and the average of these two tests is not lower than 60%.
- If a student fails both the first and the second test, (s)he can retake the worse exam with special conditions. Namely the average of the retake exam, and the better exam from the first two, has to reach 60%.
- If both tests are under 30% the student has to get at least 90% on the retake to pass.
- There is only one retake test in the semester.
exam 1: 60%, exam 2: 60% -> passed, no retake exam is needed
exam 1: 60%, exam 2: 40% -> 60% is needed on retake. retake exam: 75% -> passed
exam 1: 90%, exam 2: 30% -> 50% is needed on retake. retake exam: 40% -> failed
exam 1: 20%, exam 2: 20% -> 90% is needed on retake. retake exam: 92% -> passed
exam 1: 20%, exam 2: 40% -> 80% is needed on retake. retake exam: 75% -> failed
Note that if a student fail only one test and pass the other the result on the retake has to be at least 50% no matter of the result of the passed test. (See the 3rd example above.)
Syllabus (the topics may shift in time)
Modelling, Linux basics, “Hello world”
Structure of the C language, printf(), scanf()
Control sequences in C (if, switch, while, do-while, for)
C operators and expressions, static arrays in C, /, %
Sort and search
FILE pointers, FILE I/O
First practice exam.
Functions and “procedures”, pointers
Strings in C
The linked list
More about linked lists
Second practice exam
Third practice exam.
Kernighan, Brian W.; Dennis M. Ritchie (February 1978).
The C Programming Language