University of Liege | Version française
Study programmes 2013-2014Last update : 17/04/2014
INFO0201-1  Introduction to computer programming, (2nd semester)

Duration :  20h Th, 40h Pr
Number of credits :  
Bachelor in geographical sciences, general orientation, 1st year5
Bachelor in physics, 1st year6
Lecturer :  Peter Schlagheck
Language(s) of instruction :  
French language
Organisation and examination :  
Teaching in the second semester
Course contents :  
This course gives an introduction to the art of programming in C/C++. After a general introduction into the working principle of a computer, the elementary components of the programming language C/C++ will be explained and their appplication will be demonstrated and discussed. Topics of the course in detail: - electronic logic based on transistors - information in terms of bits and bytes - the working principle of a computer - syntax and elementary instructions of C/C++ - algorithmic tools - functions - file handling and compilation - arrays and pointers - structured variables
Learning outcomes of the course :  
The principal objectives of the course are - to learn how to realize small programs in order to solve numerical problems, - to get used to the general techniques of programming (loops, functions, arrays, ...), - to know how a computer works in principle, in order to judge what is practicable in programming (e.g. from the memory and CPU point of view), -to prepare for the course "Numerical methods of physics".
Prerequisites and co-requisites/ Recommended optional programme components :  
Planned learning activities and teaching methods :  
40 hours of practical sessions in front of a computer are provided for the course. They take place in the computer rooms 4/15 and 4/34 of the building B5a.
Mode of delivery (face-to-face ; distance-learning) :  
The course will be given face-to-face "ex cathedra" by a beamer presentation. The students that are registered for the course will be able to download the slides via myULg.
Recommended or required readings :  
Recommended literature: - T. Bastin: "Le Langage C/C++ (" (ULg, lecture notes) - H.-P. Garnir: "Introduction à l'Informatique (" (ULg, lecture notes) -S. Lippmann, J. Lajoie & B.E. Moo: "C++ Primer" (Addison-Wesley, 2005) -B. Stroustrup: "The C++ Programming Language" (Addison-Wesley, 1997)
Assessment methods and criteria :  
The exam takes place within one session of 4 hours (8h30-12h30 or 14h-18h). It consists of realizing a few programs on the computer (practical part, 70%) and of responding to a few questions on the subject (theoretical part, 30%).
Work placement(s) :  
Organizational remarks :  
Contacts :  
Peter Schlagheck Département de Physique Université de Liège IPNAS, building B15, office 0/125 Sart Tilman 4000 Liège Phone: 04 366 9043 Email:

Items online :  
Chapter 1
Electronic logic

Chapter 2
Binarized information

Chapter 3
The working principle of a computer

Chapter 4
Elementary programming in C/C++

Chapter 5
Algorithmic tools

Chapter 6

Chapter 8

Chapter 9
Structures and classes

Chapter 7
File handling and compilation

Introduction to the Code::Blocks software

TP geography: session 1
variables, instructions, elementary operations, input/output

TP geography: session 10

TP geography: session 2

TP geography: session 3
characters, assignment operators, switch clause

TP geography: session 4

TP geography: session 5
error handling

TP geography: session 6
arrays and random numbers

TP geography: session 9

TP geography: introductory session
Practical work: introductory session

TP geography: sessions 7 and 8
repetition sessions

TP physics : introductory session
Practical work: introductory session

TP session 1
variables, instructions, elementary operations, input/output

TP session 2
branchings, loops, mathematical functions

TP session 3
arrays, random numbers, functions, routines

TP session 4
recapitulation, error handling

TP session 5
functions and procedures, error handling, reading and writinginto files

TP session 6
strings, runtime monitoring of a program

TP séance 7
pointers, dynamical arrays

TP session 8
constants, pointers, multidimensional dynamical arrays

imageSearch by Faculty
imageSearch by teacher
imageSearch by course code and title

Students and Studies Administration - Academic Affairs - Contact : Monique Marcourt, General Director for Education and Training - Developed by SEGI