Computer Programming

A.Y. 2023/2024
12
Max ECTS
96
Overall hours
SSD
INF/01
Language
Italian
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.
Single course

This course can be attended as a single course.

Course syllabus and organization

Single session

Responsible
Lesson period
First four month period
Course syllabus
BASIC CONCEPTS
· Algorithms.
· Phases of programming.
· Modeling tools.
· Documentation.
· A brief history of programming.
· Programming languages
STRUCTURED PROGRAMMING
· 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.
OBJECT ORIENTED PROGRAMMING
· 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 in order to consolidate fundamental theoretical concepts and laboratory examples for practicing in C and Java programming.
Teaching Resources
Slides, additional documents, and video-lectures available on the course web site.
Assessment methods and Criteria
The exam is divided into two parts.
A written exam (two hours, no open book) for the theoretical part where competences in terms of computer programming concepts and algorithmic thinking are evaluated, and a project in C (that need to be agreed with the teacher) where the quality and complexity of the project are evaluated to assess the C programming skills.
The two parts of the exam can be done even in separated distinct exam sessions and in any order. The votes of the exam is expressed in thirtieths and results as the average of the scores of the written exam and the project. Both the parts are considered passed when a score of at least 18 is achieved.
For the written exam, in addition to the correctness of the answer, the competence in the use of an adequate technical language will be evaluated. For the practical exam, in addition to the correctness of the result, the technical quality of the programming will be evaluated.
Optionally, always after previous agreement with the teacher, it is possible to do an additional project in Java, where the competence on the object oriented programming will be evaluated (for a maximum increment of 2 points).
INF/01 - INFORMATICS - University credits: 12
Lessons: 96 hours
Professor: Anisetti Marco
Professor(s)