21210206 - Fondamenti di informatica e di programmazione

The course aims to provide the students with the methodological and conceptual tools for the design of algorithms and the realization of programs for solving problems automatically. By the end of the course, the student will be able to understand, analyze and model a parametric problem, will be able to design an algorithm for its solution by means of iterative and recursive techniques, and will be able to implement algorithms in the Python programming language.

Canali

scheda docente | materiale didattico

Programma

Computers and programs, notion of algorithm, Matlab and Python programming languages, errors and problem solving. Variables, logical and relational operators, strings, input and output data. Conditional constructs, IF statement, nested branches, flow graphs, multiple alternatives, Boolean variables. Loop FOR and WHILE, problem solving and algorithms that use loops. Nested loops, random numbers, and simulations. Functions and scripts, implementation and testing of functions, passing parameters, return values, recursive functions. Lists and their properties. Tables and their properties. Exceptions and files. Sets and dictionaries.

Testi Adottati

Lecture notes by the Professor on the Moodle platform and MS Teams of the University
C. Horstmann, R. D. Necaise, "Python: introduzione alla programmazione", Maggioli Editore.

scheda docente | materiale didattico

Programma

Computers and programs, notion of algorithm, Matlab and Python programming languages, errors and problem solving. Variables, logical and relational operators, strings, input and output data. Conditional constructs, IF statement, nested branches, flow graphs, multiple alternatives, Boolean variables. Loop FOR and WHILE, problem solving and algorithms that use loops. Nested loops, random numbers, and simulations. Functions and scripts, implementation and testing of functions, passing parameters, return values, recursive functions. Lists and their properties. Tables and their properties. Exceptions and files. Sets and dictionaries.

Testi Adottati

Lecture notes by the Professor on the Moodle platform and MS Teams of the University
C. Horstmann, R. D. Necaise, "Python: introduzione alla programmazione", Maggioli Editore.