Page 992 - IT2
P. 992

void rendezVousJour(){

                          for (int i =0;i<vr.size();i++){
                                 SimpleDateFormat d =new SimpleDateFormat();
                                 d.getDateInstance();
                                                if (vr.get(i).date.equals(d))
                                 System.out.println(vr.get(i).toString());
                          }
                                 }

                          //Une  méthode permettant d’afficher le membre du personnel ayant
            réalisé le maximum d’actes durant
                   //l’année 2013 afin de lui offrir une prime de rendement.

                   void affichePersonnelPrime(){
                          int c;
                          Vector<Integer> v = new Vector<Integer>();
                          for (int i =0;i<vp.size();i++){
                                 for (int j =0;j<vr.size();j++){
                                         if (vp.get(i).nom.equals(vr.get(i).p.nom) ){
                                                if (vr.get(i).date.YEAR_FIELD==2013) {
                                                c++;}
                                         }
                                         v.add(i, c);
                                 }

                   }
                          int max=v.get(0);
                          int ind;

                          for (int i =0;i<v.size();i++){

                                 if (v.get(i)>max){
                                         max=v.get(i);
                                         ind=i;
                                 }
                          }
                   System.out.println("le personnel méritant la prime est :"+ vp.get(ind).nom);

                   }



                   public static void main(String[] args) {

                          // tester toutes les méthodes précédentes


                   }

            }

            DOSSIER III – DEVELOPPEMENT WEB


            Le formulaire du stagiaire doit comporter :



                  Filière                    Epreuve                       Session              11/12
                  TDM                  Synthèse V1(Correction)            Juillet 2014
                                          www.itlearning-settat.com

                                   Email: admission@itlearning-settat.com
                                                   Tél.:0661077812
   987   988   989   990   991   992   993   994   995   996   997