Correction developpement dapplications informatiques 2020
Centre National de l'Évaluation et des Examens Examen National du Brevet de Technicien Supérieur Page Session Corrigé - Filière Épreuve Développement des Systèmes d ? Information - DSI Développement des Applications Informatiques - DAI Durée heures Coe ?cient ÉTUDE DE CAS Association des personnes porteuses de trisomie DOSSIER I RÉCUPÉRATION DES INFORMATIONS D ? UNE FORMATION Sous Dossier - STRUCTURE DE DONNÉES Implémentation de la classe Formation ? public class Formation implements Serializable private String codef libelle private Date dateDebut dateFin a pt public Formation String cf String lib Date dd Date df this codef cf this libelle lib this dateDebut dd this dateFin df b pt Override public boolean equals Object ob if this ob return true if ob null return false if ob instanceof Formation false return false ? Formation f Formation ob return this codef equalsIgnoreCase f codef c pt Override public String toString SimpleDateFormat f new SimpleDateFormat ??dd MM yyyy ? return ??Code ? this codef ? Libelle ? this libelle ? e ?ectuée entre ? f format this dateDebut ? et ? f format this dateFin pts Implémentation de la classe FormationTheorique ? public class FormationTheorique extends Formation private String nomFormateur private String salle pts public FormationTheorique String cf String lib Date dd Date df String nf String s super cf lib dd df this nomFormateur nf this salle s pts Override public String toString return super toString ? n ? ??Formateur ? this nomFormateur ? salle ? this salle CCorrigé de l ? Examen National du Brevet de Technicien Supérieur Session - Page Filière DSI Épreuve DAI Implémentation de la classe Bene ?ciaire ? public class Bene ?ciaire private String codeB private String nom prenom private String ville private Date dateNais private ArrayList listeFormations a pt public Bene ?ciaire String cb String n String p String v Date d this codeB this nom n this prenom p this ville v this dateNais d this listeFormations new ArrayList b pt public boolean addFormation Formation F return this listeFormations add F ------------------------------------------------------c pt public Formation delFormation int index try return this listeFormations remove index catch Exception ex return null d pt public boolean delFormation Formation F return this listeFormations remove F e pt public Formation setFormation int index Formation F try return ? this listeFormations set index F catch Exception ex return null f pt Override public String toString String m ? Code Ben ? this codeB ? Nom complet ? this nom ? ? this prenom ? ayant béné ?cié des formations n ? int i for formation f this listeFormations m i ? - ? f toString ? n ? return m g pts CCorrigé de l ? Examen National du Brevet de Technicien Supérieur Session - Filière DSI Épreuve DAI public void saveFormations String ?le try ObjectOutputStream out new ObjectOutputStream FileOutputStream ?le for Formation f this listeFormations if f instanceof FormationTheorique out writeObject f out ush Out close catch Exception ex Page CCorrigé de l ? Examen National du Brevet de Technicien Supérieur
Documents similaires










-
35
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Jan 08, 2022
- Catégorie Law / Droit
- Langue French
- Taille du fichier 59.6kB