Boolean algebra and information encoding. Analysis of a problem and definition of the algorithm for its resolution. Programming languages: general concepts. The C language: data and instructions; input/output functions; program control structures: sequential, conditional and iteration statements; arrays and strings; functions; pointers. Practices in laboratory.
1.M. Barone, E. Marinari, G. Organtini, F. Ricci-Tersenghi, Programmazione scientifica, Pearson, 2006.
2.A. Bellini, A. Guidi, Linguaggio C: Guida alla programmazione 3/ed., McGraw-Hill, 2006.
3.B. W. Kernighan, D. M. Ritchie, Il Linguaggio C, Pearson, 2004.
Learning Objectives
Knowledge acquired: The student acquires knowledge about information encoding and the concepts of algorithm and program. Moreover, acquiresthe notions that are the base of a programming language such as C.
Competence acquired:The student acquires the competenceto understand the design issues of simple algorithms. In particular, after having successfully passed the examination of the course, will be able to design algorithms for solving simple scientific problems and implement the solution correctly with the C language.
Skills acquired (at the end of the course):The student is able to analyze a simple problem, to establish an algorithm for its solution and implement it with C
Teaching Methods
Total hours of the course (including the time spent in attending lectures, seminars, private study, examinations, etc...): 75
Hours reserved to private study and other individual formative activities:
Contact hours for: Lectures (hours): 24
Contact hours for: Laboratory (hours): 12
Further information
Office hours:
By appointment via e-mail
Type of Assessment
The final exam consists of a written test with closed questions and exercises to be done in detail. During the course there will be intermediate tests that, if passed, can substitute the final exam.
Course program
Boolean algebra and information encoding: encoding of numbers and characters. The concepts of algorithm and program. Analysis of a problem and definition of the algorithm for its resolution. Programming languages and encoding of instructions and data. Programming languages: general concepts. The C language: data and instructions; input/output functions; program control structures: sequential, conditional and iteration statements; arrays and strings; functions; pointers. Practices in laboratory.