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 a comprehensive guide to programming the 8086 microprocessor in assembly language. It outlines the instruction set, including data transfer, arithmetic, logical, branching, and advanced addressing modes. Detailed examples demonstrate the use of mnemonics, data manipulations, and addressing methods for constructing efficient programs. The material also covers arithmetic and logical operations, rotation and shift functionalities, and control flow techniques, including conditional jumps and subroutine calls, making it a complete resource for understanding low-level progr...
This document instructs learners on debugging compilation issues for a C program by addressing errors in code structure. It guides students through breaking a program into separate files, creating and including header files, and resolving errors or warnings. The exercise involves implementing functions, editing source files, and linking them during compilation. Learners perform step-by-step tasks to achieve a functional compilation and executable, covering common pitfalls in programming practices.
This document provides a detailed introduction to programming the SIMATIC S7-1200 using TIA Portal V12. It covers the hardware configuration, key features of the automation system, and utilization of programming software, including signal and I/O addressing, logical operations, and methodologies for uploading and executing programs on the programmable logic controller. Practical examples such as basic circuit operations (AND, OR, NOT) and step-by-step guidance are included to ensure clear comprehension of automation system basics and efficient use in industrial applications.
This document outlines a practical exercise on creating a web service using EJB and a corresponding web service client. It includes steps for creating a new project, session bean, and deploying the web service. The exercise culminates in building a web application that consumes the created web service.
This document explores the representation of knowledge, highlighting various formalism approaches such as classical logic and procedural representation. It also introduces expert systems, detailing their history, anatomy, functioning principles, and conflict resolution strategies. The goal is to formalize knowledge for manipulation and inference of new knowledge.
This document discusses the FIPA standards for intelligent agents, including their history, objectives, and the different categories of specifications. It outlines the implementation of agent systems, communication protocols, and various applications of agent technology. The document aims to promote agent-oriented technology and ensure interoperability with other technologies.
This document outlines the implementation of an Android activity designed to verify and display file content from external storage or internal app storage. It includes methods for checking media accessibility, reading files, and displaying results using Toast notifications. The code emphasizes robust error handling to manage scenarios such as missing files or restricted access permissions effectively.
This Java activity is designed for an Android application that allows users to input integers through a UI and save these values to a file. The program calculates the cumulative sum of the integers, which is saved in both internal and external storage (if available). Error handling and file operations are integrated to ensure reliability. Additionally, it supports displaying the list of entered integers and uses Android's Toasts for user feedback.
This document outlines a Java EE workshop, focusing on the use of the JSP Standard Tag Library (JSTL) for building dynamic web applications. Core objectives include understanding the utility of JSTL, learning to manipulate its tag libraries (Core, Fmt, Fn, Sql, Xml), and implementing it in JSP files to follow the MVC design pattern. Practical exercises cover tasks such as variable declarations, using JSTL tags like <c:out>, <c:set>, and others to manipulate data, and integrating JSP components like header and footer. Advanced tests involve conditional logic, loops, and rendering dynamic dat...
This document presents an examination on Algorithmic Complexity conducted at the School of Digital Economy, University of Manouba. It includes exercises on time complexity of various algorithms, hashing problems, and dynamic programming for finding the longest common subsequence. The exam assesses knowledge in algorithmic principles and asymptotic complexity.
This document introduces functional programming, its underlying principles, and contrasts it with imperative programming. It discusses the historical context and the evolution of programming languages, leading to the emergence of functional programming paradigms. The document also addresses the challenges faced in software development and how functional programming languages can provide solutions.
This document outlines the development of a Java-based graphical user interface (GUI) application to manage a database table called 'Matière'. The application uses a JDBC-ODBC bridge to connect to the database utilizing the driver 'sun.jdbc.odbc.JdbcOdbcDriver'. It provides functionality for inserting new entries into the table and displaying all records of the 'Matière' table in a text area. The interface comprises labels, text fields for entering data, buttons for triggering actions, and a layout using GridLayout with specific event-driven code components. Exception handling for driver lo...
The document provides multiple Java programming exercises focused on creating GUI applications to compute the area and perimeter of a rectangle and manipulate list selections. It details implementations such as using Swing components for user input validation, button interactions, and dynamic menu-driven options for computations. The solutions emphasize event handling and input validation. Furthermore, it introduces list-based GUI displays with actions triggered by selections, showcasing practical examples of Java development for beginners.
This document provides an in-depth overview of Java Database Connectivity (JDBC), including its definition, architecture, and use cases. It explains how JDBC acts as a standardized API for database access in Java, highlighting its benefits in terms of SQL capabilities and driver independence while mentioning some limitations such as SQL string errors and lack of support for object-oriented databases. Furthermore, the document reviews different JDBC driver types and outlines key implementation steps, including driver loading, establishing database connections, executing SQL queries, handling...
This document explores GUI design in Java through three exercises focusing on calculating rectangle properties, dynamically updating UI elements based on user input, and implementing a menu for calculations. The first exercise involves writing a program to calculate surface area and perimeter with input validation. The second exercise develops a window with interactive list-based buttons for programming language selection, offering two update mechanisms. The third exercise creates a menu-based UI for entering rectangle dimensions and performing calculations, featuring user-friendly input bo...
This course covers various essential web programming languages including HTML, CSS, JavaScript, PHP, and XML. Students will learn the fundamentals of creating structured web pages and the role of HTML in web communication. The curriculum aims to equip learners with comprehensive knowledge of web technologies needed for modern web development.
Cet examen consiste en 6 questions portant sur la gestion des processus et l'ordonnancement. Les étudiants doivent démontrer leur compréhension de concepts clés tels que les PID, le fonctionnement des processus et divers types d'ordonnancement. La notation prend en compte la clarté d'expression et la qualité de l'écriture.
This document introduces the principles and methodologies for creating graphical user interfaces (GUIs) in Java using the AWT and Swing libraries. It covers fundamental concepts like creating windows, adding components using containers, and managing their layout with layouts such as BorderLayout, FlowLayout, and GridLayout. Additional topics include handling user interactions through event listeners and using JPanel to create complex layouts. Basic hands-on examples demonstrate practical implementation, including absolute positioning of components and assigning actions to buttons.
This document explores the First Person Controller (FPC) in depth and its components. It provides a detailed analysis of parent-child relationships in object hierarchies and introduces scripting basics for controlling object behaviors. Essential rules for understanding local positioning and rotation in game development are also covered.
This document provides a guide on collision detection in Unity using colliders as triggers. It covers working with 2D objects, managing GUI textures, and creating prefabs for game objects. Additionally, it discusses the setup of resources and the importance of tags and colliders in game mechanics.
This document provides a comprehensive guide on creating interactive menus in Unity, focusing on two primary methods: using GUI Texture components and UnityGUI classes. It outlines the steps to design, script, and implement menus for game applications, essential for enhancing user experience. The document also includes details on importing necessary assets and resources for menu creation.
This course introduces the evolution of video games and the expanding industry that encompasses various professions in creation and distribution. It covers the different stages involved in video game development, including key libraries and 3D game engines. The presentation outlines the importance of teamwork and creativity within the industry.
This document describes the implementation of a Java program based on a class diagram. It includes detailed instructions to create classes, respect inheritance and composition relationships, and implement essential methods such as attribute setters, getters, `toString`, and cloning methods. Each class requires a `main` method to test its functionality. The focus is on managing collections of objects like 'Disque' and associating them with 'Collection' while calculating attributes such as price, duration, and quantity. Advanced error handling for index bounds and method returns is mandatory.
















