Computer programming

A.Y. 2021/2022
Overall hours
Learning objectives
This is an introductory class on programming, its principles, and techniques. Its aim is to make the student, who might never have been exposed to programming, familiar with this discipline and to provide those insights and tools required to approach all further classes that assume some knowledge of programming.
Expected learning outcomes
At the end of the course the student will be able to devise and write solutions to average difficult problems using an imperative programming language. They will also be able to solve some simle problems using the object oriented paradigm.
Course syllabus and organization

Single session

Lesson period
First semester
Teaching methods:
The lessons will be held both face to face and on the Microsoft Teams platform and can be followed both in synchrony and asynchronously way.

Please refer to the Rector's decrees for all directives and instructions for accessing the university premises.

Reference materials:
no variation

Learning verification procedures and assessment criteria:

The exam is structured as in the non-emergency mode. Where the regulation allows it, the same procedures will be maintained in presence.
Otherwise, the theoretical exam will be carried out in oral mode as well as the presentation of the projects using the Microsoft Teams platform.
Course syllabus
· Algorithms.
· Phases of programming.
· Modeling tools.
· Documentation.
· A brief history of programming.
· Programming languages
· Principles of structured programming.
· C Language: expressions and assignments, control structures, predefined types, arrays, matrices, and strings, structured types, pointers, and memory management, functions and parameter passing, main and parameters to main, standard library, file management.
· Jumps elimination: the Böhm-Jacopini Theorem, Ashcroft and Manna's transformation.
· Code correctness: elements of validation and verification.
· Modularity, abstraction and abstract data type, encapsulation classes and objects, inheritance and polymorphism
· Design pattern, Aspect oriented programming
· Java programming
· Advanced software development practices
Prerequisites for admission
This is an introductory class on programming, its principles, and techniques. The scope is to provide all the knowledge to model, solve and develop software solution to simple problems. Therefore, there are no specific pre-requisites to address the course.
Teaching methods
Lectures for the theoretical part and laboratory exercises mainly for practicing C and Java programming.
Teaching Resources
Slides and additional documents available on the course web site.
Assessment methods and Criteria
The exam is divided into two different parts (two hours, no open book). A written exam for the theoretical part where competences in terms of computer programming concepts and algorithmic thinking are evaluated. Two projects in C and Java (that need to be agreed with the teacher) where imperative programming, OO competences and the quality and complexity of the project are evaluated.
The vote of theoretical and projects parts of the exam is expressed in thirtieths.
The two parts of the exam can be done even in separated distinct exam sessions. The projects (C and Java) must be presented together in a unique exam session.
INF/01 - INFORMATICS - University credits: 12
Laboratories: 48 hours
Lessons: 72 hours
Professor: Anisetti Marco
Turno A
Professor: Anisetti Marco
Turno B
Professor: Casiraghi Elena
Write to for an appointment