Page 987 - IT2
P. 987

return c;
            }

            int main(){

                int nb;
              printf("Combien d'abonnés voulez vous ajouter?");
             scanf("%d",&nb);

            for (int i=0; i<nb;i++)
            {

            printf("Saisie de l'abonne n° %d", i);
            ajoutAbonne();

            }

             affichageForfaitPlafonne(nb);
             int nombre=calculNombreAbonnes2013(nb);
             printf("Le nombre d'abbonés inscrits en 2013 est : %d ", nombre);
            }
            DOSSIER II – PROGRAMMATION ORIENTEE OBJET

            public class Cliente {

                   String nom ;
                   String prénom;
                   String numTelephone;
                   int jourNaissance;
                   int moisNaissance;
                   String adresseMail;

                   //Constructeur

                   public Cliente(String nom, String prénom, String numTelephone,
                                 int jourNaissance, int moisNaissance, String adresseMail) {
                                         this.nom = nom;
                          this.prénom = prénom;
                          this.numTelephone = numTelephone;
                          this.jourNaissance = jourNaissance;
                          this.moisNaissance = moisNaissance;
                          this.adresseMail = adresseMail;
                   }

                   //Sélécteures et Modificateurs

                   public String getNom() {
                          return nom;
                   }
                   public void setNom(String nom) {
                          this.nom = nom;
                   }
                   public String getPrénom() {
                          return prénom;
                   }
                  Filière                    Epreuve                       Session              6/12
                  TDM                  Synthèse V1(Correction)            Juillet 2014
                                          www.itlearning-settat.com

                                   Email: admission@itlearning-settat.com
                                                   Tél.:0661077812
   982   983   984   985   986   987   988   989   990   991   992