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.

Chapitre 3 : Encapsulation et Surcharge

This document delves into the principles of encapsulation and method overloading in object-oriented programming, particularly in Java. It defines encapsulation as a mechanism to bundle data and methods while controlling access through visibility modifiers (e.g., public, private). The document highlights the benefits of encapsulation, such as improved simplicity, robustness, and maintainability. Additionally, it explains method overloading as enabling the use of identically named methods with varying parameter configurations, enhancing code reusability and semantic clarity.

encapsulation
setters and getters
method overloading
7p0
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
TP JAVA N°1

This document is a Java programming lab assignment designed for SI2-B gTP2 students at Université de Carthage, specifically for Object-Oriented Programming. It includes a series of exercises focusing on Java classes, methods, and basic object-oriented paradigms. Exercises involve analyzing a given program, implementing classes with constructors and methods, such as for 'Temps' and 'Point', and performing operations like translations, distance calculations, and evaluating program outputs. The final exercise involves creating a program to calculate the area and perimeter of a square using use...

Object-Oriented Programming
Java
class methods
2p0
INITIATION À MATLAB

This document serves as an introduction to MATLAB, a powerful numerical computing software designed for matrix calculations. It explores its features, including interpreted programming and variable handling. The goal is to familiarize students with MATLAB's environment and basic commands.

matlab
peut
fonction
10p0
Pratiques de conversion RVB/HSV et traitement d’images en niveau gris avec MATLAB

This document provides an overview of digital image processing, including definitions, formats, and various techniques used to manipulate images. It discusses image representation in terms of pixels and color components, as well as methods for format changes, histogram equalization, and filtering techniques. Practical exercises in MATLAB are included to reinforce the concepts covered.

image
filtrage
filtre
3p0
Descripteur basé sur Curvature Scale Space

This document discusses a descriptor based on the Curvature Scale Space (CSS) methodology applied to contour detection in images. It elaborates on the algorithms for calculating CSS, matching descriptors, and presents results showcasing the effectiveness of the approach. Key properties include robustness to noise and efficiency in execution.

algorithme
calcul
matching
16p0
L'analyse XML

This document introduces XML as a markup language for structuring and representing data. It details the Document Object Model (DOM) as a parse tool for XML, explaining its tree structure and the APIs that allow navigation and manipulation of XML with programming languages like Java. The text provides step-by-step instructions on reading and writing XML using the DOM API in Java, including code examples for parsing and generating XML documents. Finally, it emphasizes the importance of DOM and its adaptability across different platforms and languages.

XML
DOM API
parse tool
26p0
TD 1 – Exercice 3

This document discusses a logic programming exercise focused on knowledge extraction using predicate logic. It illustrates the formulation of rules and horn clauses to derive conclusions about happiness based on financial status and family success. The exercise culminates in an attempt to prove the goal of achieving happiness through backward chaining.

reussit
exercice
alain
9p0
Introduction à la POO

This document provides an in-depth exploration of object-oriented programming (OOP), starting with the historical evolution from procedural and structural programming. It outlines key concepts such as modularization, encapsulation, abstraction, inheritance, and polymorphism that enhance code modularity, reusability, and maintenance efficiency. The text introduces OOP concepts through examples, contrasting it with older paradigms and emphasizing its alignment with real-world problem-solving. It concludes by highlighting how these principles improve development timelines, code quality, and ma...

Object-Oriented Programming
encapsulation
inheritance
12p0
Introduction à la Programmation Orientée Objet

This document introduces Object-Oriented Programming (OOP) by tracing the evolution of programming paradigms and addressing the challenges of modern software development. It discusses core OOP principles like modularization, encapsulation, inheritance, polymorphism, and abstraction, comparing them to previous paradigms like procedural programming. The methodology involves breaking systems into autonomous, interacting objects with attributes and methods, drawing parallels to real-world entities for intuitive understanding. Key findings emphasize the benefits of OOP in ensuring flexibility, c...

Object-Oriented Programming
Polymorphism
Encapsulation
12p0
Chapitre 2 : Concepts OO en JAVA

The document introduces core object-oriented concepts and their implementation in Java, focusing on classes, attributes, and methods. It details visibility modifiers, including 'public', 'private', 'protected', and default, and their role in encapsulation. The document also covers constructors, their types, and usage for object initialization. Additionally, it discusses static elements, method structure, and parameter passing mechanisms, providing syntax examples and exercises for practical understanding.

Object-Oriented Programming
class
constructor
Institut Supérieur des Études Technologiques28p0
Leçon 4 : L’outil makefile

This lesson introduces the makefile tool, emphasizing its utility for efficient compilation in large projects. It explains the principles of dependency graphs, conditional compilation, and the distinction between makefiles and traditional shell scripts. Practical details on writing, executing, and customizing makefiles with variables and macros are provided, with examples demonstrating common use cases. Overall, the lesson highlights how makefile optimization saves time by recompiling only modified code and facilitates complex build processes using predefined rules and commands.

makefile
conditional compilation
dependency graph
9p0
Leçon 2: Compilation Séparée

This document introduces the concept of modular programming in C, detailing the advantages such as improved readability, reusability, and optimization in compilation time. It explains separate file compilation, exemplifying with two programs ('comp_sep.c' and 'fonctions.c') and providing step-by-step commands using 'gcc'. The importance of declaring functions and using header files is emphasized to ensure type safety, with a practical approach via the creation of a shared header file ('fonctions.h'). It also highlights the distinction between local and predefined header file inclusion strat...

modular programming
gcc -c
header files
8p0
Encapsulation et concepts de POO - TP4

This document delves into the implementation of Java classes to model bank accounts, focusing on key object-oriented programming principles such as encapsulation, accessors, and mutators. It mandates creating a `Compte` class with attributes, constructors, methods for crediting, debiting, and transferring funds, alongside rules for overdraft and maximum debit limits. The tasks include implementing private attributes, defining methods for account management, and creating a `TestCompte` class to validate functionality. The primary focus is on reinforcing conceptual understanding of OOP while...

encapsulation
toString
object-oriented programming
3p0
Programmation Web 1 - Support de Cours

This document provides a foundational study on Internet and web-related technologies, aimed at first-year IT students. The course covers internet services such as email, file transfers, and search engines, along with web technologies like HTML, XHTML, and CSS. Emphasis is placed on building web pages through hands-on exercises and HTML components, including tables and forms. The syllabus is designed for gradual updates based on student feedback and real-world technological developments.

HTML
CSS
XHTML
Institut Supérieur des Études Technologiques de Djerba60p0
Java Practical Work

This document provides a series of Java practical exercises designed to familiarize students with key programming concepts such as object-oriented programming, inheritance, and interfaces. It includes exercises to create and manipulate classes like 'Date', 'Point', 'TableauTrie', and 'Coordonnees', encouraging encapsulation and method implementation. The methodology incorporates practical testing within Java environments, focusing on hands-on coding tasks. Various core aspects of Java including exception handling, polymorphism, and abstract classes are covered in these exercises.

Java
Date class
Object-oriented programming
27p0
TP POO - Séance 03

This document serves as lecture notes for object-oriented programming, focusing on the concepts of variables, methods, and object manipulation through practical exercises. It introduces foundational concepts such as instance variables, class variables, and local variables alongside constructors and methods for object creation, data access, and management. Practical tasks guide readers through the creation of classes and methods to represent and manipulate points on a Cartesian plane and implement address books in programming. Exercises require basic functionality expansions, including const...

variables
constructors
methods
20p0
Introduction to Object-Oriented Programming in Java

This document outlines a series of exercises designed to teach and test core object-oriented programming concepts in Java. It introduces classes and methods to work with objects such as Articles, Dates, Bottles, Points, and more, emphasizing encapsulation, abstraction, and data manipulation. The document also prompts students to test functionality through 'main' methods and provides hints about performance optimization and the significance of access modifiers. It concludes with a reflection on object cloning and suggests improvements to enhance practical understanding.

Object-Oriented Programming
Java
methods
6p0
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
Développement d’un logiciel embarqué pour un appareil de mesure électrique prépayé

This document presents the development of embedded software for a prepaid electric measurement device. The software aims to ensure that electricity is paid for before consumption and allows users to manage their electricity usage according to their financial capacity. Key features include token generation, security through encryption, and calibration of the device.

number
slide
telnet
31p0
Mise en place de Services génériques pour le Framework Talan

This document outlines the development of a generic services framework for Talan. It covers the implementation process, including functional and non-functional requirements, testing, and user interface design. The project serves as a proof of concept and explores various technologies and best practices.

number
slide
espacere
33p0
Devoir Surveillé de Programmation Orientée Objets

This document is an exam for the course on Object-Oriented Programming for university students. It includes multiple exercises focused on C++ constructs such as pointers, classes, and memory management. Students are required to provide answers and explanations for given code snippets.

polyn
quot
pile
École Nationale des Sciences de l'Informatique (ENSI)6p0
Devoir Surveillé en Programmation Orientée Objets

This document presents an exam on Object-Oriented Programming covering various exercises related to classes and mathematical concepts such as rational numbers and prime number calculations. It includes code snippets and theoretical questions to assess understanding of programming concepts and mathematical reasoning.

ensemble
quot
fraction
École Nationale des Sciences de l'Informatique (ENSI)10p0
Analyse de performances et comparaison des algorithmes étudiés

Ce document aborde l'analyse de la performance des algorithmes de localisation de dipôles actifs dans le contexte de l'EEG. Il définit des critères d'évaluation pour comparer les solutions inverses obtenues par différents algorithmes. Enfin, il présente une comparaison qualitative et quantitative des algorithmes Gibbs sampler, MNE, et SISSY.

dipˆoles
algorithmes
bruit
1p0

Autres ressources en programmation