Exercices - Programmation

86 documents à télécharger gratuitement

Exercices de programmation, partagés par des étudiants et des enseignants. Thèmes couverts : algorithmique, langage C, Java, Python, POO, structures de données.

Object-Oriented Programming Java Practical Exercise

This document is a programming assignment focusing on Object-Oriented Programming concepts in Java. It guides students to implement classes representing geometric shapes (Point, Circle, and Cylinder) and explore inheritance, encapsulation, and polymorphism. The exercise asks students to calculate surface area and volume for these shapes, using mathematical formulas incorporating radius, height, and center coordinates. The provided code includes constructors, setters, and methods, emphasizing best practices and accurate functionality for geometrical operations.

OOP
Java
inheritance
4p0
T.D de Programmation Orientée Objet N° 3

The document contains three exercises focusing on the implementation of object-oriented programming concepts. Exercise 1 involves completing classes to enable proper inheritance between Point, Cercle, and Cylindre classes, calculating specific properties such as surface area. Exercise 2 explores polymorphism and method overriding using classes such as Personne, Enseignant, and its derivatives. Exercise 3 requires writing the minimal required code for a program that demonstrates class hierarchies and method behavior through inheritance and overriding in a profession-themed context. The docum...

class inheritance
surface calculation formula
object-oriented programming theory
2p0
Programmer en Java

This document introduces Java programming concepts, gradually moving from basic syntax to advanced object-oriented concepts. It leverages an educational programming environment called Greenfoot for interactive learning, focusing on exercises that explore methods, classes, and scenarios to promote understanding of programming logic and structure. Additional topics include advanced interaction with objects, parameter usage, and control flow mechanisms, culminating in practical application scenarios. Transitioning away from Greenfoot, the document outlines the use of simpler environments, incl...

Java methods
Greenfoot
object-oriented programming
73p0
Corrections des exercices du livre 'Java pour les enfants, les parents et les grand-parents'

This document serves as a comprehensive solutions manual for the exercises in 'Java pour les enfants, les parents et les grand-parents' by Laurent Bernabé. It provides detailed step-by-step corrections for each exercise across multiple chapters, covering a variety of programming topics like object-oriented programming, GUI development with Swing, and advanced features like exceptions and generics. Each chapter includes systematic coding examples, explanations of core Java concepts, and practical synthesis sections for consolidating knowledge. Additionally, challenging exercises labeled as '...

Java
classes and methods
object-oriented programming
118p0
Programmation Orientée Objet (Java): Série n°2 Classes et Objets

This document provides a series of practical programming exercises in Java, focusing on object-oriented principles such as classes, objects, inheritance, and encapsulation. The first set of exercises ('Carnet d’adresses') focuses on implementing a contact book using custom Java classes. Complementary exercises delve into geometric representations ('Point' and 'Cercle'), relational modeling for a library and books ('Book' and 'Library'), and client-account banking systems ('Client' and 'Compte'). Methodologies emphasize constructing classes with appropriate methods, attributes, and functiona...

object-oriented programming
Java
class structure
5p0
Exercice d’application en Java RMI

This document provides an application exercise utilizing Java Remote Method Invocation (RMI) to create remote accessible services for string manipulation and mathematical operations. It includes instructions to define interfaces, handle remote exceptions, and implement remote objects. Sample code and structure for interfaces and classes are presented.

java
quot
clementine
7p0
Balises WSDL dans un service web et leurs équivalents Java

This document contains a series of exercises related to web services, focusing on WSDL and SOAP concepts. It includes questions regarding WSDL tags, Java method correspondences, and syntax errors in SOAP envelopes. Additionally, it provides an annex with a WSDL definition and types.

quot
wsdl
soap
8p0
Systèmes et Applications Répartis

This document contains an exam for the course 'Systèmes et Applications Répartis' covering topics such as RPC, RMI, and JMS. It includes various exercises designed to test students' understanding of distributed systems and remote method invocation. The exam requires concise and precise answers to technical questions.

serveur
information
findh
10p0
Exam on Distributed Systems and Applications

This document outlines an examination on distributed systems and applications, covering various topics including Java-RMI and CORBA. The exam consists of multiple exercises, each focusing on different aspects of distributed computing, such as messaging, geometric services, syntax rules, and file systems. Students are required to answer brief but clear questions demonstrating their knowledge and understanding of the subject matter.

fichier
rectangle
java
8p0
Systèmes d’exploitation & Programmation Concurrente II

This document includes exercises on inter-process synchronization and the classic readers/writers problem. A solution for the dining philosophers problem is also provided using mutex and conditional variables. The exercises require implementing process execution orders using semaphores and filling out Gantt diagrams.

processus
mutex
pthread
6p0
Systèmes d’exploitation & Programmation Concurrente II2

This document describes a lab exercise on multithreaded programming with synchronization techniques. It includes two main exercises: modeling a teacher-student interaction in a computer lab and managing a fictitious bank account with deposits and withdrawals by synchronized threads. The goal is to complete the student thread implementation and ensure proper synchronization in a banking simulation.

thread
etudiants
threads
6p0
Series d'Exercices et Corrige

This document contains a series of exercises focused on recursion and iterative programming techniques. Each exercise provides a task to implement various functions, including list manipulations, factorization, and set operations. Additionally, the document includes solutions for each exercise that demonstrate the intended logic and function implementation.

liste
fonction
exercice
20p0
Les procédures

Ce document traite des procédures en programmation, notamment sur l'utilisation des sous-programmes pour éviter la répétition de séquences d'instructions. Il explique le fonctionnement de la pile en tant que zone mémoire pour stocker des adresses de retour et pour le passage de paramètres entre le programme principal et les sous-programmes.

pile
programme
architecture
22p0
Programmation linéaire

This document presents exercises on linear programming methods, specifically focusing on the simplex method. It includes multiple exercises that involve maximizing and minimizing functions based on given constraints. The document also covers real-world applications like refinery production and optimization problems.

deux
prix
machine
5p0
Recherche Opérationnelle - Programmation Linéaire

This document presents a series of linear programming exercises designed for an operational research course. Each exercise aims to model problems involving profit maximization, cost minimization, and feasible solutions. The exercises also include formulating linear programs and applying the simplex method.

programme
aire
sous
5p0
Programmation linéaire : Exercices modélisation et optimisation

This document discusses various exercises related to linear programming including modeling for profit maximization, cost minimization for animal feed, and techniques for finding optimal solutions such as the graphical method and the simplex method. Several exercises also provide constraints and require formulation under standard forms to solve issues pertinent to operational research.

programme
aire
sous
5p0
Devoir de Maison de Programmation Linéaire

This document consists of exercises on Linear Programming. It includes definitions, problem statements, and questions related to canonical and standard forms. The focus is on the simplex algorithm and related concepts.

donner
sous
base
6p0
Thread POSIX

This document covers exercises related to the creation and management of threads using POSIX threads (pthread) in C. It includes practical examples of thread creation, synchronization with semaphores, and controlling the execution order of threads. The document concludes with a practical case of launching threads in a specific order.

pthread
quot
void
3p0
ENSI 2012/2013 S.E & Prog Concurrente

This document contains exercises focused on process management, including the use of commands like ps and exec. It covers various tasks involving the creation and management of processes in a programming context. The exercises are aimed at enhancing the understanding of process IDs, environmental variables, and the use of system functions.

attente
fils
quot
3p0
Algorithmique et arbres

This lab focuses on red-black trees, their properties, and exercises to demonstrate understanding. It includes the identification of red-black trees from given examples and exercises to prove logarithmic height in relation to the number of nodes. The document concludes with corrections and explanations for the exercises.

arbre
rouge
noir
Institut Galilée - Université Paris 134p0
Méthodes de Conception OO

This document presents the main exam for the OO Design module in a second-year computer science course. It involves automating a video cassette loan management system and developing a class diagram based on a given object diagram. Additionally, it addresses the requirements for a real-estate management system for a property company.

vente
appartement
prix
3p0
C Programming: Recursive Function Exercises

This document presents a series of programming exercises primarily focused on recursive functions implemented in C. The exercises aim to solve problems such as iterative addition, greatest common divisor (PGCD), integer division, and factorial computations using recursion. Each exercise highlights different problem-solving strategies: accumulative addition, alternative PGCD derivations, recursive division with remainder, and factorial computation. The provided code segments include user input handling, calculations, and output of results.

recursion
C programming
PGCD
6p0
Algorithmique Avancée - Types de Données et Algorithmique

This document provides an in-depth overview of elementary abstract data types, including lists, stacks, and queues, along with their operations, properties, and implementations using arrays and pointers. It introduces advanced topics such as trees (binary, binary search, AVL) and graphs (directed, undirected), as well as algorithm complexity analysis and problem-solving strategies like divide-and-conquer. The syllabus includes detailed explanations, visualizations, and exercises aimed at implementing key operations for optimal efficiency.

Abstract Data Types
Algorithm Complexity
Divide and Conquer
17p0
Algorithmique Avancée

This document outlines core concepts of data structures and algorithms. It covers various abstract data types such as lists, stacks, and queues, along with their operations and implementations. Significant attention is given to different forms of trees (binary, binary search, AVL) and graph structures, along with algorithm complexities and advanced methodologies like divide-and-conquer and dynamic programming. The syllabus also includes details on internal and external sorting algorithms and practical exercises for implementing these structures and algorithms in programming environments.

abstract data types
algorithm complexity
LIFO principle
17p0

Autres ressources en programmation