Вы находитесь на странице: 1из 2

Atelier Programmation 2 ___________________________________________________________________________________________

A.U 2014/2015 Technologies de l'Informatique


Niveau L1 (Tronc Commun)

TP N° 4

Les Listes Chaînées

Partie I :

Soient les structures suivantes :

- Logiciel : décrit par son nom, le nom de l’éditeur, son type, l’année de l’édition, sa
licence et la taille nécessaire pour l’installer sur le disque (cette taille est exprimée
en Kilo Octets) ;
- Cellule : composée d’un champ Info de type Logiciel et de deux champs Suivant et
Précédent qui sont des pointeurs sur Cellule ;
- Liste_Logiciel : composée de deux champs Tête et Queue qui sont deux pointeurs
sur Cellule.

1. Ecrire une fonction Créer_Liste_Logiciel qui permet de créer une liste de logiciels à
partir du clavier.

2. Ecrire une fonction Recherche_logiciel qui permet de rechercher un logiciel dans une
liste de logiciels à partir de son nom donné en paramètre.

3. Ecrire une fonction Liste_logiciel_Editeurs permettant de retourner la liste de logiciels


développés par l’éditeur spécifié en paramètre dans une deuxième liste.

4. Ecrire une fonction Nbre_logiciel_libre qui retourne le nombre de logiciels ayant une
licence libre.

5. Ecrire une fonction Total_Espace_Occupé permettant de calculer le total de l’espace


disque occupé par les logiciels de la liste.

6. Ecrire un programme principal qui fait appel à ces fonctions.

-1-
Atelier Programmation 2 ___________________________________________________________________________________________

Partie II :

On ajoute aux représentations précédentes la structure suivante :

Ordinateur : décrit par les trois champs :


 Nom : chaine de caractère
 Capacité_disque : réel
 Logiciels_instalés : Liste_Logiciel

1. Ecrire la fonction Installer_logiciel permettant d’ajouter un logiciel donné en paramètre à


la liste de logiciels qui constitue l’ordinateur. On ne peut ajouter le logiciel que lorsque
l’espace libre de l’ordinateur est supérieur ou égal à la taille du logiciel.
L’espace libre de l’ordinateur = Capacité disque – espace occupé par les logiciels.

2. Ecrire la fonction Desinstaller_logiciel permettant de supprimer un logiciel de la liste des


logiciels qui sont installés sur un ordinateur. On donne comme paramètres l’ordinateur et le
nom du logiciel à désinstaller.

3. Ecrire la fonction Formater_Ordinateur qui permet de supprimer tous les logiciels de


l’ordinateur donné en paramètre.

-2-

Вам также может понравиться

  • Autocad Et Covadis Avec Crack
    Autocad Et Covadis Avec Crack
    Документ2 страницы
    Autocad Et Covadis Avec Crack
    Almou Slimane
    33% (3)
  • Parc Informatique
    Parc Informatique
    Документ9 страниц
    Parc Informatique
    Boub_
    100% (1)
  • FICHE DE TD TRIM2 (3ème)
    FICHE DE TD TRIM2 (3ème)
    Документ9 страниц
    FICHE DE TD TRIM2 (3ème)
    BAMALJoseph Firmin
    100% (3)
  • TD UML Diagramme de Composants
    TD UML Diagramme de Composants
    Документ2 страницы
    TD UML Diagramme de Composants
    Arbia Tounsia
    Оценок пока нет
  • Aide Eobd Facile
    Aide Eobd Facile
    Документ21 страница
    Aide Eobd Facile
    cherif
    Оценок пока нет
  • Cours GLPI
    Cours GLPI
    Документ35 страниц
    Cours GLPI
    Anas Stitou
    100% (1)
  • Ecu Reprogrammation
    Ecu Reprogrammation
    Документ26 страниц
    Ecu Reprogrammation
    Valentina Dbt
    Оценок пока нет
  • FICHE DE TD 1 - ARCHITECTURE DES ORDINATEURS - Kamertic
    FICHE DE TD 1 - ARCHITECTURE DES ORDINATEURS - Kamertic
    Документ1 страница
    FICHE DE TD 1 - ARCHITECTURE DES ORDINATEURS - Kamertic
    bertrand
    Оценок пока нет
  • Tdinfo TCD
    Tdinfo TCD
    Документ24 страницы
    Tdinfo TCD
    Loic Ulrich
    Оценок пока нет
  • CPBX TP 1 FR
    CPBX TP 1 FR
    Документ6 страниц
    CPBX TP 1 FR
    abdallah jarray
    Оценок пока нет
  • Introduction Au Logiciel TIA Portal
    Introduction Au Logiciel TIA Portal
    Документ39 страниц
    Introduction Au Logiciel TIA Portal
    abdelali chakir
    Оценок пока нет
  • Local Media1478380737
    Local Media1478380737
    Документ3 страницы
    Local Media1478380737
    chamsedinemaulicemourad
    Оценок пока нет
  • Exercice 1
    Exercice 1
    Документ2 страницы
    Exercice 1
    Siraj SAAD
    Оценок пока нет
  • TP1 Fpga S1 2016
    TP1 Fpga S1 2016
    Документ13 страниц
    TP1 Fpga S1 2016
    mohamed.saidi212001
    Оценок пока нет
  • ts1 Info Architecture
    ts1 Info Architecture
    Документ2 страницы
    ts1 Info Architecture
    rima allaw
    Оценок пока нет
  • TP0 PDF
    TP0 PDF
    Документ6 страниц
    TP0 PDF
    hadjer
    Оценок пока нет
  • TP CPP
    TP CPP
    Документ27 страниц
    TP CPP
    heroshima nal
    Оценок пока нет
  • TP Sin 2018 2017 PDF
    TP Sin 2018 2017 PDF
    Документ21 страница
    TP Sin 2018 2017 PDF
    yap
    Оценок пока нет
  • Readme
    Readme
    Документ15 страниц
    Readme
    Med Madrid
    Оценок пока нет
  • Apprendre Knime
    Apprendre Knime
    Документ7 страниц
    Apprendre Knime
    rhhr
    Оценок пока нет
  • Atelier 1
    Atelier 1
    Документ4 страницы
    Atelier 1
    kaoutar
    Оценок пока нет
  • SOPC Builder
    SOPC Builder
    Документ17 страниц
    SOPC Builder
    SimoKas
    Оценок пока нет
  • Eval4 T ESTP
    Eval4 T ESTP
    Документ2 страницы
    Eval4 T ESTP
    BAMALJoseph Firmin
    100% (1)
  • Manuel RCTC PDF
    Manuel RCTC PDF
    Документ38 страниц
    Manuel RCTC PDF
    ba
    Оценок пока нет
  • 1-Principe de Programmation Ladder
    1-Principe de Programmation Ladder
    Документ13 страниц
    1-Principe de Programmation Ladder
    MariaEd
    Оценок пока нет
  • Technologie de L'ordinateur-Bt1 - Technologie
    Technologie de L'ordinateur-Bt1 - Technologie
    Документ2 страницы
    Technologie de L'ordinateur-Bt1 - Technologie
    rima allaw
    Оценок пока нет
  • Tp28-Configuration Du Pare-Feu
    Tp28-Configuration Du Pare-Feu
    Документ11 страниц
    Tp28-Configuration Du Pare-Feu
    Louazna Youssef
    Оценок пока нет
  • Cours Step7
    Cours Step7
    Документ49 страниц
    Cours Step7
    Dawn Light
    0% (1)
  • Lecon 6:: Les Logiciels
    Lecon 6:: Les Logiciels
    Документ45 страниц
    Lecon 6:: Les Logiciels
    Kouassi Francis Kouame
    Оценок пока нет
  • Fascicule TP SED
    Fascicule TP SED
    Документ35 страниц
    Fascicule TP SED
    Akram Del Rio
    100% (1)
  • Prog en C 21
    Prog en C 21
    Документ176 страниц
    Prog en C 21
    Alassane Jules NIKIEMA
    Оценок пока нет
  • Cours Matlab
    Cours Matlab
    Документ19 страниц
    Cours Matlab
    Omar Khayyam
    Оценок пока нет
  • C4 GestionProjet
    C4 GestionProjet
    Документ204 страницы
    C4 GestionProjet
    pipila
    Оценок пока нет
  • Chap 3
    Chap 3
    Документ9 страниц
    Chap 3
    INES
    Оценок пока нет
  • TP Gmaao
    TP Gmaao
    Документ46 страниц
    TP Gmaao
    sellami wafa
    Оценок пока нет
  • Chaptre 4
    Chaptre 4
    Документ5 страниц
    Chaptre 4
    mars ali
    Оценок пока нет
  • Delphi
    Delphi
    Документ40 страниц
    Delphi
    loesouleymane
    Оценок пока нет
  • Micro 3
    Micro 3
    Документ8 страниц
    Micro 3
    Kiadam Kitou
    Оценок пока нет
  • 1.1 Prise en Main de L'émulateur: Chapitre
    1.1 Prise en Main de L'émulateur: Chapitre
    Документ8 страниц
    1.1 Prise en Main de L'émulateur: Chapitre
    Mamadou Mouctar Diallo
    Оценок пока нет
  • Aide Eobd Facile
    Aide Eobd Facile
    Документ26 страниц
    Aide Eobd Facile
    Yellan De Zim
    Оценок пока нет
  • Uml Compta
    Uml Compta
    Документ17 страниц
    Uml Compta
    Zineb Taki
    50% (2)
  • Document 1
    Document 1
    Документ26 страниц
    Document 1
    alainkelly1996
    Оценок пока нет
  • 3 - Windows 7
    3 - Windows 7
    Документ15 страниц
    3 - Windows 7
    godwin AMEVOR
    Оценок пока нет
  • Linux SN CORRIGE
    Linux SN CORRIGE
    Документ5 страниц
    Linux SN CORRIGE
    Hasina Andl
    Оценок пока нет
  • Mini PROJET
    Mini PROJET
    Документ8 страниц
    Mini PROJET
    TECH NEWS
    Оценок пока нет
  • TP1:Architecture Des Ordinateurs
    TP1:Architecture Des Ordinateurs
    Документ2 страницы
    TP1:Architecture Des Ordinateurs
    OULAKBIR Ilham
    Оценок пока нет
  • TD II C Combines
    TD II C Combines
    Документ20 страниц
    TD II C Combines
    lkdiv7050
    Оценок пока нет
  • TD II C Combines
    TD II C Combines
    Документ20 страниц
    TD II C Combines
    Sharon Donnay
    Оценок пока нет
  • Cours
    Cours
    Документ49 страниц
    Cours
    nada
    Оценок пока нет
  • Formation XTEL
    Formation XTEL
    Документ23 страницы
    Formation XTEL
    Daniel Olivrow
    100% (2)
  • Exercices-corrigs-Arch Ord - Sys Exp
    Exercices-corrigs-Arch Ord - Sys Exp
    Документ7 страниц
    Exercices-corrigs-Arch Ord - Sys Exp
    franklin tchakoute
    Оценок пока нет
  • 4ème Seq 4ann Ind
    4ème Seq 4ann Ind
    Документ2 страницы
    4ème Seq 4ann Ind
    lemackoil
    Оценок пока нет
  • CHP 4 F
    CHP 4 F
    Документ13 страниц
    CHP 4 F
    samh mimi
    Оценок пока нет
  • pl7 Pro
    pl7 Pro
    Документ60 страниц
    pl7 Pro
    Jamel Charef
    Оценок пока нет
  • Séance1 TP Python
    Séance1 TP Python
    Документ11 страниц
    Séance1 TP Python
    IKRAM BEN BOUKTHIR
    Оценок пока нет
  • Systeme Exploitation PDF
    Systeme Exploitation PDF
    Документ93 страницы
    Systeme Exploitation PDF
    kyle xy
    Оценок пока нет
  • Examen de Passage 2014 Reseaux Informatiques Tsri Synthese Variante 1 2 PDF
    Examen de Passage 2014 Reseaux Informatiques Tsri Synthese Variante 1 2 PDF
    Документ10 страниц
    Examen de Passage 2014 Reseaux Informatiques Tsri Synthese Variante 1 2 PDF
    Abdallah Grima
    Оценок пока нет
  • PIC en C - Expressions PDF
    PIC en C - Expressions PDF
    Документ20 страниц
    PIC en C - Expressions PDF
    Mustapha El Idrissi
    Оценок пока нет
  • Cours 4emes 2020
    Cours 4emes 2020
    Документ60 страниц
    Cours 4emes 2020
    Yannick Bertrand Ntsama ndougsa
    Оценок пока нет
  • No16 26 Mai 2023
    No16 26 Mai 2023
    Документ2 страницы
    No16 26 Mai 2023
    zamboumarius33
    Оценок пока нет
  • Suite logicielle: Révolutionner la vision par ordinateur avec la suite logicielle ultime
    Suite logicielle: Révolutionner la vision par ordinateur avec la suite logicielle ultime
    От Everand
    Suite logicielle: Révolutionner la vision par ordinateur avec la suite logicielle ultime
    Оценок пока нет
  • Frame Relay
    Frame Relay
    Документ20 страниц
    Frame Relay
    Monia Salem
    Оценок пока нет
  • TD2 Réseaux PDF
    TD2 Réseaux PDF
    Документ2 страницы
    TD2 Réseaux PDF
    Monia Salem
    Оценок пока нет
  • TD2 Réseaux PDF
    TD2 Réseaux PDF
    Документ2 страницы
    TD2 Réseaux PDF
    Monia Salem
    Оценок пока нет
  • TD Réseaux PDF
    TD Réseaux PDF
    Документ2 страницы
    TD Réseaux PDF
    Monia Salem
    Оценок пока нет
  • TP File PDF
    TP File PDF
    Документ1 страница
    TP File PDF
    Monia Salem
    Оценок пока нет
  • TP Pile PDF
    TP Pile PDF
    Документ1 страница
    TP Pile PDF
    Monia Salem
    Оценок пока нет
  • TD5
    TD5
    Документ2 страницы
    TD5
    Monia Salem
    Оценок пока нет
  • TD Enregistrement
    TD Enregistrement
    Документ2 страницы
    TD Enregistrement
    Monia Salem
    Оценок пока нет
  • TD Tableaux
    TD Tableaux
    Документ2 страницы
    TD Tableaux
    Monia Salem
    Оценок пока нет
  • CV Valentin Porchet PDF
    CV Valentin Porchet PDF
    Документ1 страница
    CV Valentin Porchet PDF
    valentin.porchet
    Оценок пока нет
  • Normes Télécom PDF
    Normes Télécom PDF
    Документ29 страниц
    Normes Télécom PDF
    zoomtn
    Оценок пока нет
  • User Manual For BIOBASE Coagulometer PDF
    User Manual For BIOBASE Coagulometer PDF
    Документ72 страницы
    User Manual For BIOBASE Coagulometer PDF
    Andres Puentes
    67% (3)
  • Id 10185
    Id 10185
    Документ8 страниц
    Id 10185
    BOURASS
    Оценок пока нет
  • Exemple de Rapport de Stage Informatique PDF
    Exemple de Rapport de Stage Informatique PDF
    Документ2 страницы
    Exemple de Rapport de Stage Informatique PDF
    Karen
    67% (9)
  • CypeCad - Logiciel
    CypeCad - Logiciel
    Документ12 страниц
    CypeCad - Logiciel
    jesuservando
    Оценок пока нет
  • Comment Modifier Un Fichier PDF en Word Gratuit
    Comment Modifier Un Fichier PDF en Word Gratuit
    Документ2 страницы
    Comment Modifier Un Fichier PDF en Word Gratuit
    Rebecca
    Оценок пока нет
  • Virus Info PDF
    Virus Info PDF
    Документ148 страниц
    Virus Info PDF
    SihemHcine
    Оценок пока нет
  • Introduzione PDF
    Introduzione PDF
    Документ1 страница
    Introduzione PDF
    paul
    Оценок пока нет
  • Plan 2014 - Introduction À L'informatique
    Plan 2014 - Introduction À L'informatique
    Документ3 страницы
    Plan 2014 - Introduction À L'informatique
    Hamid Bouleghab
    Оценок пока нет
  • QSDFQSDFQ
    QSDFQSDFQ
    Документ3 страницы
    QSDFQSDFQ
    Abdelaly Jabbad
    Оценок пока нет
  • R VFGM PK5 Qu 0 C
    R VFGM PK5 Qu 0 C
    Документ448 страниц
    R VFGM PK5 Qu 0 C
    Stiva Darcy
    Оценок пока нет
  • Vite Uni 5931 PDF
    Vite Uni 5931 PDF
    Документ3 страницы
    Vite Uni 5931 PDF
    anhtho
    Оценок пока нет
  • Exercice Corrig Programmation en Assembleur PDF
    Exercice Corrig Programmation en Assembleur PDF
    Документ2 страницы
    Exercice Corrig Programmation en Assembleur PDF
    Michelle
    100% (1)
  • TUTO Installation Et Configuration D'un Serveur de Mails Sous Linux Ubuntu Serveur Avec VirtualBox 5
    TUTO Installation Et Configuration D'un Serveur de Mails Sous Linux Ubuntu Serveur Avec VirtualBox 5
    Документ5 страниц
    TUTO Installation Et Configuration D'un Serveur de Mails Sous Linux Ubuntu Serveur Avec VirtualBox 5
    Ict lab
    Оценок пока нет
  • Spanish Romance PDF
    Spanish Romance PDF
    Документ2 страницы
    Spanish Romance PDF
    nano
    Оценок пока нет
  • Jarzębski - Tamburetta PDF
    Jarzębski - Tamburetta PDF
    Документ4 страницы
    Jarzębski - Tamburetta PDF
    Szczurek Polska
    Оценок пока нет
  • Etude de Fonction Terminale S PDF
    Etude de Fonction Terminale S PDF
    Документ2 страницы
    Etude de Fonction Terminale S PDF
    Stephanie
    50% (6)
  • Bac Pratique 16052016 Tic 8h30
    Bac Pratique 16052016 Tic 8h30
    Документ4 страницы
    Bac Pratique 16052016 Tic 8h30
    Ben Khlifa Tlijani
    Оценок пока нет
  • Logiciels Et Domaines D'application PDF
    Logiciels Et Domaines D'application PDF
    Документ2 страницы
    Logiciels Et Domaines D'application PDF
    Mouad El Harrak
    100% (1)
  • Commandes Dos Sous Windows 7 PDF
    Commandes Dos Sous Windows 7 PDF
    Документ2 страницы
    Commandes Dos Sous Windows 7 PDF
    Sheree
    Оценок пока нет
  • CFLINE - Crtez PDF
    CFLINE - Crtez PDF
    Документ2 страницы
    CFLINE - Crtez PDF
    Slobodan Banic
    Оценок пока нет
  • Exercices Conjugaison Anglais PDF
    Exercices Conjugaison Anglais PDF
    Документ2 страницы
    Exercices Conjugaison Anglais PDF
    Jason
    Оценок пока нет
  • Couples de Serrage PDF
    Couples de Serrage PDF
    Документ2 страницы
    Couples de Serrage PDF
    Salah Boukeffa
    Оценок пока нет
  • DCG 6. Finance D'entreprise - Cairn - Info19 PDF
    DCG 6. Finance D'entreprise - Cairn - Info19 PDF
    Документ23 страницы
    DCG 6. Finance D'entreprise - Cairn - Info19 PDF
    Nesrine Belkhouja
    Оценок пока нет
  • Vocabulaire Termes Informatique Anglais
    Vocabulaire Termes Informatique Anglais
    Документ2 страницы
    Vocabulaire Termes Informatique Anglais
    quereur
    Оценок пока нет
  • Désimlocker Votre Clé 3G+
    Désimlocker Votre Clé 3G+
    Документ4 страницы
    Désimlocker Votre Clé 3G+
    arpete5969
    Оценок пока нет
  • Flutter Essentials
    Flutter Essentials
    Документ6 страниц
    Flutter Essentials
    Japhet Ayassou
    Оценок пока нет
  • Introduction À L'informatique
    Introduction À L'informatique
    Документ8 страниц
    Introduction À L'informatique
    Gilles Massala
    Оценок пока нет