Programmation

670 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.

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
corrigé des exercices de révision

corrigé des exercices de révision No extracted HTML was available during import for this document.

corrige
exercices
vision
6p0
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
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
Initiation à la programmation en Python

This document covers the basics of creating graphical user interfaces (GUIs) using Tkinter in Python. It includes information about the main events, interface controls, and example code segments. It emphasizes the portability of the interfaces across different operating systems.

quot
tkinter
thode
12p0
Collections Java : ArrayList, LinkedList, HashSet – Structures dynamiques et algorithmes

This document discusses collections in Java, focusing on defining data collections, their types, and their implementations. It elaborates on dynamic arrays such as ArrayList and includes sample code for creating and manipulating such collections. Overall, it serves as a comprehensive guide for understanding Java's collection framework.

collections
chebbah
2020
29p0
Série 2 - Programming Exercises

This document consists of two programming exercises aimed at basic problem-solving skills. The first exercise involves writing a program with two functions: one to receive a list of filenames and another to extract file extensions. The second exercise focuses on managing a dynamic inventory of products using a dictionary, allowing for item addition, display of all products, consultation by name, and ending the program. Both exercises rely on user input to simulate practical system functionality.

file extension
dictionary
product management
1p0
Série 2

The document presents exercises focused on programming tasks involving functions and data management in Python. The first exercise requires creating a program that manages file extensions, while the second involves using dictionaries to store and consult product data. Each exercise includes example executions to illustrate the expected outputs.

entrez
libelle
produit
1p0
Programmation Orientée Objet - Chapitre 4: Héritage et Interface

This document covers the principles of inheritance and interfaces in object-oriented programming. It discusses super-types and sub-types, the properties and methods inherited from super-types, and provides relevant examples. Key concepts include redefinition, overloading, and abstract classes.

classe
eritage
abstraite
37p0
Introduction à la Programmation Python - UVT Master BADS

The document is a syllabus for a Python programming initiation course, covering several essential modules such as dictionaries, sets, file handling, classes, and exception management. It includes practical examples, syntax breakdowns, and theoretical explanations, making it a blend of foundational and advanced-level programming concepts. Modules on dictionaries and sets explore data structuring and manipulation, while file handling delves into text, binary, and CSV files. The course concludes with advanced topics like object-oriented programming and exception handling, focusing on construct...

Python Programming
dictionaries
sets
38p0
Initiation à la programmation python

Ce document présente un cours d'initiation à la programmation en Python, axé sur les structures de données telles que les dictionnaires et les ensembles. Il couvre également les opérations de base, la gestion des exceptions et des exemples pratiques. Les apprenants sont encouragés à manipuler ces concepts via des exercices en ligne.

quot
self
print
38p0
Initiation à la Programmation Python - Activité 8.1

This document outlines an activity in Python where users create a guessing game to predict a number between 1 and 100. The game involves utilizing the 'random' module to generate a random integer and provides feedback ('higher' or 'lower') based on user input. The game must be robust to invalid inputs, handle interruptions gracefully, and limit the number of attempts to seven. Additionally, an example execution of the program is provided to guide implementation.

Python
random.randint()
guessing game
1p0
Initiation à la Programmation Python

This document outlines an activity to create a number-guessing game in Python that allows users to guess a number between 1 and 100. It emphasizes the use of the random module to generate numbers and includes requirements for input validation and limits on attempts. The example execution illustrates how the game functions and provides feedback on guesses.

proposition
votre
nombre
1p0
Initiation à la Programmation Python

This document provides a beginner-level exercise series designed to teach foundational Python programming skills. Exercises include writing scripts to generate text-based patterns, determining palindromes, finding the maximum value in a list, removing duplicates, generating card decks, and creating weekly calendars based on given dates. The tasks aim to strengthen algorithmic thinking and familiarize users with Python syntax and functionalities.

Python
palindrome
maximum value in a list
2p0

Autres ressources en programmation