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.
This document provides an overview of basic concepts of Object-Oriented Programming (OOP) in Visual Basic.Net, focusing on class definitions, constructors, destructors, accessors, and methods. It also covers the principles of encapsulation, inheritance, and polymorphism with practical examples. The material is aimed at students learning programming within a development environment.
Ce document aborde les principes fondamentaux de la méthodologie orientée objet, y compris la réification, l’abstraction, et l’encapsulation. Il compare les approches fonctionnelles et orientées objet en soulignant les avantages et les inconvénients de chacune. L'accent est mis sur la structuration des programmes et la manipulation concrète des objets dans le développement logiciel.
This document introduces the basics of graphical programming using JFrame from the javax.swing package. It covers creating and managing a JFrame window, customizing it, and implementing custom window behaviors. Examples are provided to illustrate the use of JFrame and the creation of derived classes for enhanced functionality.
Ce document présente un devoir surveillé pour les étudiants de M1 BADS à l'Université Virtuelle de Tunis. Il inclut des exercices sur les horloges vectorielles et matricielles, ainsi que des situations d'exclusion mutuelle dans un système réparti. Les étudiants doivent résoudre deux exercices avec des calculs et des modélisations.
This document explores parallel programming methodologies using two APIs: MPI and OpenMP. MPI focuses on distributed memory paradigms, allowing separate processes with individual memory spaces to communicate, while OpenMP centers around shared memory with threads operating within a single process. Practical examples and step-by-step instructions for implementing various algorithms, such as matrix-vector multiplication, array summation, and Pascal's Triangle computation, are provided. The document also offers installation guidelines, compilation commands, and best practices for hybrid progra...
This document outlines the objectives and methods for programming parallel machines using C or C++, focusing on two APIs: MPI and OpenMP. It discusses the differences and complementary nature of these APIs, including the paradigms of distributed and shared memory. The document also provides installation guidance and examples of various programs to illustrate their usage.
This document consists of five linear programming exercises designed to address optimization challenges in various contexts. Exercise 1 evaluates the production maximization of three products utilizing available machine hours. Exercise 2 explores creating an optimal cattle feed mix with cost and nutrient constraints. Exercise 3 focuses on workforce optimization for airline ground staff while balancing costs and coverage. Exercise 4 tackles maximizing net revenue by optimizing chocolate assortments, and Exercise 5 involves maximizing the net revenue of a factory producing and transporting tw...
This syllabus introduces foundational Object-Oriented Programming (OOP) concepts in Java, starting with the syntax and structure of classes, attributes, and methods. Key topics include class visibility modifiers, internal classes, and package organization. Exercises focus on real-world implementations, including defining class attributes, using constructors, and implementing methods for functionality such as displaying data and calculating results. Practical examples and exercises reinforce the programming concepts and usage scenarios in Java.
This document introduces LabVIEW, a graphical programming environment designed for measurement, control, and test systems. It explores the core components of LabVIEW, such as the front panel, block diagram, and their functionality. Practical components include lessons on dataflow programming, handling data types, creating and debugging Virtual Instruments (VIs), and error-handling mechanisms. Additionally, detailed tutorials on searching for controls, relying on built-in help systems, and applying Express VIs provide a foundation for building and troubleshooting applications.
3 sentence summary
This document provides a foundational study on distributed systems, emphasizing algorithmic principles and theoretical models. It delves into the challenges these systems face, including asynchrony, dynamism, and scalability. Key topics covered include safety and liveness properties, the role of logical, vector, and matrix clocks in ensuring causal consistency, and techniques for observing and maintaining system state in the absence of global clocks and shared memory. Notable solutions proposed include Lamport's Logical Clocks and Vector Clocks, which address causal ordering and event synch...
This document outlines a programming exercise designed to create and manage a student database using a dictionary. It requires the implementation of two functions for data entry and retrieval. The focus is on handling user input and formatting the output correctly.
This document presents a programming activity focused on Python. The task involves creating two functions for processing a list of integers. One function determines the maximum value from the list, while the other separates the list into even and odd numbers.
This document presents an activity related to the Python programming module. It prompts students to identify a concept introduced in a video that is not covered in the course PDF. Additionally, students are tasked with writing a program to calculate the length of a string using the identified concept.
This document presents an activity aimed at calculating the potential roots of a quadratic equation. It explains the quadratic equation formula and the conditions for determining the number of real roots based on the discriminant. The activity includes calculations and scenarios based on the value of the discriminant.
Apache Pig is a high-level platform for MapReduce programming used with Hadoop. It offers a language called Pig Latin, which simplifies the programming model compared to Java MapReduce, similar to SQL for relational databases. Pig Latin is extensible through User Defined Functions and supports parallel execution in distributed systems.
The document is a comprehensive guide to Python programming focusing on modules, Tkinter for graphical interfaces, and numerical computations with Numpy. It emphasizes the reusability and organization of code using modules, and demonstrates how to create GUIs step-by-step using Tkinter. In addition, it discusses the incorporation of common Python modules, such as math, os, and pandas, for specialized purposes. Practical examples and coding snippets are provided to facilitate understanding and application of the concepts.
This online session introduces Python programming with a focus on modules, graphical interfaces using tkinter, and the Numpy module. It covers the definition and advantages of modules, how to import external modules, create custom modules, and introduces some common Python modules. The session aims to provide foundational knowledge essential for further programming studies.
This lab focuses on modifying SSIS packages to incrementally extract data from various sources. The goal is to ensure that only records added or modified since the last extraction are processed. Techniques including Change Data Capture and Change Tracking are utilized to optimize data extraction processes.
The document outlines the allocation of 10 tasks, each with specific costs, across three processors with varied speeds. It requires the application of six studied algorithms to perform the allocation efficiently and compares the results. The methodology includes calculating task distributions while accounting for processor speeds and task costs. Findings aim to show the effectiveness and performance differences between the algorithms.
Ce document détaille les approches pour lire, manipuler et exporter des fichiers texte dans le langage R. Il présente diverses méthodes telles que readLines() et scan() pour importer des fichiers, ainsi que des fonctions pour la manipulation de chaînes comme nchar() et substr(). Les techniques d'exportation de données vers différents formats comme .txt, .csv, .xlsx et .RData sont également expliquées. Enfin, il introduit l'utilisation de bibliothèques externes comme xlsx pour l'exportation avancée.
This document covers various operations regarding text file handling in R, specifically focusing on reading, writing, and processing text data. A dataset called The_Artist.txt is used for practical examples throughout the module. It includes methods for reading text files and manipulating string data.
This document covers the importation and reading of CSV and Excel files in R. It provides practical examples of downloading data and loading it into R. Key functions and libraries needed for processing these file types are discussed.
This document is a programming lab report focused on implementing the concept of encapsulation in Java through the modeling of bank accounts. It outlines the required class structure, including attributes like account number, account holder details, and balance, with rules on operations such as crediting, debiting, and transfers. Key constraints include fixed account identifiers, balance limits based on overdraft and debit restrictions, and the use of private attributes with access through getters and setters. It concludes with detailed method definitions for account management and testing...























