The purpose of the course "Programmazione 1" is to provide the notions for imperative programming in high-level languages. In particular, we will introduce a subset of the C++ programming language.
"Programmazione 1" is a practical course, where the objective is learning how to program. Most of the teaching hours will be spent in laboratory. Even the classroom lessons will be aimed at providing the necessary basic notions, models and tools, to enable the student learn how to program with an imperative language, here C/C++.
Introduction to programming, in particular to the imperative paradigm, throught the C++ language. After attending the classes, the student will be able to write simple programs in the C++ programming language, and will know models and structures useful for learning other imperative programming languages in the future.
This course will provide some necessary basic notions about computer architecture, data representation, operating system. It will introduce the notions of algorithm and program, high-level programming languages and execution models (compiled or interpreted languages). It will present the basic concepts and features of programming in a high-level imperative language (variables, statements, instructions for controlling the execution flow, functions), using the C/C++ language as a case study. It will provide the guide lines for the design of small-size programs solving a simple problem and for testing them.
The considered example of high-level languages will be (the impeative subset of) the C++ programming language.
The course will be practical. Every lesson will be immediately followed with activities in laboratory, where the introduced notions will be applied to the development of C++ programs.
After attending this course, the student will:
None.
"Programmazione 1" takes place in the second semester. There will be 3 classroom hours and 4 laboratory hour per week.
Every week some laboratory assignments will be given. The students will have the opportunity to deliver some of such exercises (not evaluated for the exam) and obtain useful feedback.
In some weeks, recap exercises will be assigned. If delivered and positively evaluated, such recap exercises will gain up to 2 bonus marks for the final exam (see section on Assessment methods).
The considered example of high-level language will be the imperative subset of the C++ programming language.
Course notes published on aulaweb.
Online resources about the C++ programming language (links provided on aulaweb).
Other useful books:
Programming Principles and Practice using C++. B. Stroustrup. Addison-Wesley Professional, 2008 C++. Fondamenti di programmazione. H. M. Deitel, P. J. Deitel; Editore: Apogeo 2009 Che C serve? Per iniziare a programmare. Burattini, Chianese, Picariello, Moscato, Sansone. Maggioli editore 2016.
Ricevimento: On request. Appointment by email (paola.magillo@unige.it)
Ricevimento: By appointment (in person or online), taken via email (matteo.dellamico@unige.it).
Ricevimento: Please contact the instructor by email of preferably via Teams.
PAOLA MAGILLO (President)
NICOLETTA NOCETI
MATTEO DELL'AMICO (President Substitute)
The class will start according to the academic calendar.
The final exam consists of:
It is not necessary that the two tests are passed in the same session.
The exam is passed when the quiz test (with outcome> = 18) and laboratory (with outcome> = 18) are passed. The final grade will be the average of the two outcomes, possibly summed up with the (at most 2) bonus marks obtained by delivering the recup exercises during the semester (see section on Teaching methods).
The quiz test will evaluate the acquisition of basic concepts presented during the course. The questions will be about the C++ instructions, their properties, understanding C++ code, and may require to write small fragments of C++ code.
The laboratory test will evaluate the ability to develop correct C ++ code to solve small problems, and consists of completing a "template" program that will be provided. The evaluation will take into account the following aspects in order of decreasing importance:
No prerequisite is required. Basics of logic and mathematics normally provided by the high school are still useful.
Students who have valid certification of physical or learning disabilities on file with the University and who wish to discuss possible accommodations or other circumstances regarding lectures, coursework and exams, should speak both with the instructor and with Professor Sergio Di Domizio (sergio.didomizio@unige.it), the Department’s disability liaison.