PROGRAMMING
cod. 1003606

Academic year 2009/10
1° year of course - Second semester
Professor
Academic discipline
Informatica (INF/01)
Field
Discipline matematiche e informatiche
Type of training activity
Basic
48 hours
of face-to-face activities
6 credits
hub: -
course unit
in - - -

Learning objectives

The course is intended to provide an introduction to imperative programming using C++ as the reference programming language. <br />

Prerequisites

- - -

Course unit content

Problems and algorithms: basic notions, flow-charts - Programming languages. Program execution (translation vs. interpretation) - Program structure. A sample program in C++ - Constants and variables - Elementary data types in C++ -Assignment and compound statement - Basic input/output - Operators and expressions - Control structures (selection, iteration). Structured stratements in C++ - Data structures (abstract vs. concrete). Arrays in C++. Matrices. Strings. 'struct'. Tables (hints) - The 'typedef' declaration. <br />
Subprograms: motivations. Function declaration and call in C++ - Parameter passing: by value, by reference. 'void' functions - Recursive functions - Scope rules in C++. Local vs. global declarations - File management in C++. <br />
Program development. Programming environment: editor, compiler, linker (hints) - Developing simple programs using the imperative part of C++ - Using library functions.  

Full programme

- - -

Bibliography

H.M. Deitel, P.J. Deitel. C++ Fondamenti di programmazione, Apogeo, 2003, 696 pages

Teaching methods

Theory supported by exercises and practical experimentation <br />
Exams: Written and practical test<br />

Assessment methods and criteria

- - -

Other information

- - -