Lecture | Topic | Assignment | Material |
---|---|---|---|
Week 1 (19 February, 2015) |
Overview over the course conduct. Introduction to computing, programming, the family of programming languages and C. | Write a C program to display your name, age and department to the screen. Bring the print-out of the C code to me. | Slides (PDF) |
Week 2 (26 February, 2015) |
Basic data types; variables and naming conventions; basic I/O in C; arithmetic operators and expression evaluation. | Write a C program to solve a second-order equation (see the last page of the slides). | Slides (PDF) |
Week 3 (5 March, 2015) |
More on operators and expression evaluation: relational operators; increment and decrement operators. | Write a C program to solve a system of two linear equations with two unknowns (see the last page of the slides). | Slides (PDF) |
Week 4 (12 March, 2015) |
Finish operators: comparison operators; logical operators. If statements. | No assignment this week. | Slides (PDF)
--- Solution of the previous assignment |
Week 5 (19 March, 2015) |
Review & examples on if statements; switch statements | No assignment this week. | Slides (PDF) |
Week 6 (26 March, 2015) |
Repetitions (while and do-while statements) | No assignment this week. | Slides (PDF)
--- In-class examples |
Week 7 (2 April, 2015) |
Repetitions (for, break, continue statements); Nested, infinite loops | Write a C program to read in numbers and do some calculation on them (check the slides) | Slides (PDF)
--- In-class examples |
Week 8 (9 April, 2015) |
Functions; function declaration, definition, call | No assignment this week. | Slides (PDF)
--- In-class examples |
Week 9 (16 April, 2015) |
More on functions; parameter passing; scope of variables. | No assignment this week. | Slides (PDF)
--- In-class examples |
Week 10 (23 April, 2015) |
No lecture due to "23 Nisan". | NA. | NA. |
Week 11 (30 April, 2015) |
Arrays: definition, initialization, use and passing them to functions. | No assignment this week. | Slides (PDF)
--- In-class examples |
Week 12 (7 May, 2015) |
Multi-dimensional Arrays, Strings. | Write a C program to read two matrices and multiply them (check the slides) | Slides (PDF)
--- In-class examples |
Week 13 (14 May, 2015) |
Strings. | None | We used the slides of Week 12
--- In-class examples |