Programmation

782 documents à télécharger gratuitement

Cours, examens, TD, TP et exercices de programmation. Thèmes couverts : algorithmique, langage C, Java, Python, POO, structures de données.

Problème inverse d’EEG : TP3 - Analyse de performances et comparaison des algorithmes étudiés

This document discusses the evaluation of performance for inverse algorithms in EEG data analysis. It emphasizes the importance of having a ground truth and a defined evaluation criterion to assess the algorithms' effectiveness quantitatively. The focus is placed on comparing the active dipoles from original configurations with those estimated by algorithms such as Gibbs sampler, MNE, and SISSY through various simulations.

dipˆoles
algorithmes
bruit
3p0
Exercises on Algorithms and Data Structures

The document provides a series of algorithmic exercises aimed at applying principles of structured programming for beginners. Key tasks include implementing pseudocode for decision-making (Tarifs, BMI), loop-based computations (minimum finding, factorial, mean calculations), and complex conditional structures (triangle identification, absolute values). Corrections for each exercise demonstrate step-by-step solutions using standard pseudocode formats to ensure clear understanding and execution.

algorithm design
programming logic
pseudocode structure
13p0
Algorithmique et Programmation I - Séance 5

This document outlines programming fundamentals using the C language, focusing on control structures like loops (for, while, do-while). It introduces calculation techniques for tasks like computing averages for students, both for known and unknown group sizes, and emphasizes loop control to handle infinite loops effectively. Additionally, it illustrates examples to show optimal use of loops in various scenarios, concluding with key programming constructs such as conditional statements and iterative structures.

algorithmique
C programming
loops
25p0
Atelier de Programmation I - Séance 4

This document serves as a workshop guide focusing on iteration in programming, specifically the 'for loop' in C language. It outlines different types of loops (for, while, repeat), details the structure and methodology of the 'for loop', and provides practical programming exercises with explanations of common errors and their corrections. The document concludes with assignment tasks, encouraging learners' hands-on practice in programming concepts including alphabet generation and summation algorithms.

iteration
for loop
loop programming structure
17p0
Structures conditionnelles

This document explores conditional structures in programming, emphasizing their importance in enabling complex logic and decisions. It introduces the 'if', 'if-else', 'if-else-if ladders', and 'switch' structures with syntax breakdowns and practical examples in C programming. Examples include testing conditions to display maximum numbers and creating menus using switch cases. Key programming principles like initializing variables and avoiding mistakes such as missing 'break' statements are also addressed.

conditional structures
if-else
switch
13p0
Les Tableaux

This document introduces fundamental concepts and problem-solving steps with 1D and 2D arrays. It defines arrays as data structures of fixed-size holding elements of the same type, discusses their declaration in programming languages, and explains key operations, including reading values, summing elements, and counting specific values. Examples are provided, such as calculating the sum of array elements, counting null elements, and determining the number of scores exceeding the class average. A banking transaction exercise with account updates is also included.

arrays
T[i]
data structure theory
13p0
Les Structures itératives

This document focuses on iterative structures in programming, specifically the 'While' and 'Repeat Until' loops. It details their syntax, functionality, and provides examples like calculating factorials and divisors to showcase usage. It explains the difference between iterative structures and discusses nested loops, their design considerations, and examples like computing averages. Lastly, it includes programming exercises such as finding perfect numbers and calculating the greatest common divisor using algorithms.

While loop
Repeat Until loop
Factorial calculation
20p0
Structures Décisionnelles

This document provides an in-depth explanation of conditional structures in programming, including single and multiple choice branching. It discusses nested conditionals, logical operators, and examples to solve problems such as finding the greater value and applying discounts based on conditions. Additionally, it introduces advanced branching techniques for multi-value expression evaluation and outlines algorithms for problems such as date computation and traffic light responses.

conditional structure
algorithm
logical operator
11p0
TP : Opérations sur les variables

This document describes step-by-step instructions for executing various data analysis tasks in SPSS. Key tasks include generating variables for the global invoice amounts, calculating descriptive statistical summaries, and separating data based on subscriber type and tenure. Additionally, the report outlines procedures for recoding data and summarizing complaints, along with a cross-tabulation by subscriber type for a comprehensive analysis.

SPSS
global invoice amounts
recoding data
1p0
Travaux Dirigés N°2 - Méthodologies de conception orientée objet

This document presents corrections for exercises in object-oriented design methodologies aimed at second-year undergraduate students. Core activities include modeling multiplicity constraints in various contexts (e.g., rental contracts and vehicles), exploring banking associations with constraints, and handling academic course management. Additional exercises focus on implementing graphical editors and managing IT park resources, demonstrating practical applications of design principles.

multiplicity constraints
object-oriented design
banking model
Institut Supérieur d'Informatique de Mahdia3p0
Méthodologies de Conception Orientée Objet

This document presents a series of exercises aimed at mastering class diagram modeling. It includes several tasks to analyze relationships and create corresponding class diagrams based on provided scenarios. The exercises cover various contexts in programming and class structures, focusing on practical application in software design.

chaque
classes
ordinateur
Institut Supérieur d'Informatique de Mahdia2p0
Python Exception Handling

This document explores the concept and mechanisms of handling exceptions in Python. It explains the types of errors, including syntax errors and runtime exceptions, and details the use of try-except blocks to catch and manage these exceptions effectively. Advanced techniques such as the use of raise, propagation of errors, asserting conditions, and defining custom exceptions are highlighted. Practical examples demonstrate how exception handling enhances error management, program robustness, and user experience.

exceptions
try-except
ZeroDivisionError
18p0
UVT MASTER BADS

This document covers the handling of exceptions in Python programming. It explains the mechanism of try-except statements for managing runtime errors while ensuring program stability. Various types of exceptions, including user-defined exceptions, are also discussed.

quot
print
except
18p0
Éléments de base de l’algorithmique

The document provides foundational concepts of algorithms and their components, including input, output, and intermediary objects. It details the structure of an algorithm, identifier rules, constants, and variables, with examples for each. Key instructions such as assignment, input/output operations, and various operators (arithmetic, logical, relational) are covered. The document emphasizes the importance of declaring objects and includes practical examples to apply these concepts.

algorithmic objects
operators
data structures
29p0
Introduction à l’Algorithmique

The document introduces algorithmic methodologies and emphasizes the importance of problem analysis prior to programming. It defines programming steps, highlights advantages of analytical problem-solving, and provides an example using Euclidean division of integers. The generalization of resolution steps underscores the systematic approach to transitioning from problem definition to implementation in programming languages.

programming methodology
algorithm
Henry Ledgard
12p0
Notions de base: Partie 2

This document provides fundamental programming concepts in C, focusing specifically on input/output mechanisms, operators, and data types. Examples of `printf` and `scanf` usage are explained for integer, float, and character manipulation. Detailed information is given about arithmetic, logical, comparison, and assignment operators, including their precedence. It concludes with the memory footprint of various data types, extending into format specifiers commonly used for input/output in C.

printf
scanf
operators
13p0
Notions de base: Partie 1

This document covers foundational concepts in programming with the C language, focusing on variables and their characteristics, rules for naming variables, variable types and declarations, data assignments, and constants. It explains syntax rules and offers examples highlighting correct and incorrect variable names and declarations. The use of constants is also introduced with clear emphasis on type qualifiers and initialization.

Variables
Syntax Rules
Declaration
8p0
Ordinal Numbers and Dates

This document covers the concept of ordinal numbers and their applications in dates. It also includes basic arithmetic operations and exercises involving numbers, dates, and fractions. Additionally, it emphasizes writing numerical values in words.

four
equals
numbers
2p0
Mémento Python 3

This document serves as a comprehensive cheat sheet for fundamental Python programming concepts. It covers data types, logical operations, variable assignments, and sequence manipulations. The guide delves into Python's function definitions, conditional loops, and error-handling mechanisms. Finally, it provides examples for handling files, data containers, numerical operations and string formatting.

data types
logical operators
Python functions
2p0
Initiation à la Programmation Python - Activité 10.1

The document outlines an introductory activity focused on Python programming using the tkinter library. It involves creating a graphical user interface that allows users to input a monetary amount and convert it into its equivalent in euros by clicking a button. The activity encourages familiarity with Python libraries and basic GUI application design principles. The exercise emphasizes hands-on learning and real-world application of programming concepts.

Python
tkinter
currency conversion
1p0
MASTER BADS

This document outlines an activity for an introductory programming course in Python. It involves creating a graphical interface using the tkinter library. The objective is to input an amount and convert it to euros upon pressing a conversion button.

bads
master
activite
1p0
Initiation à la Programmation en Python - Module 12

The document introduces the GUI development module using Tkinter, a standard Python library, covering widgets like Label, Entry, Text, CheckButton, Radiobutton, Listbox, and Combobox. It details their creation, customization, and handling user inputs, alongside event-driven development methods like `mainloop()`. Examples showcase widget control, layout placement, and dynamic content modification processes. Comparative notes on alternatives to Tkinter like wxPython and pyQT are briefly mentioned.

Tkinter
GUI Widgets
Python Label
12p0

Autres ressources en programmation