From 0ccde78f46eb839276cab94608411bb9745a4b28 Mon Sep 17 00:00:00 2001 From: Antoine PEREDERII Date: Tue, 8 Nov 2022 18:24:10 +0100 Subject: [PATCH 1/4] ajout de la fonction sauvegarde --- ActivitesJour.don | 9 +++++++++ SAE.c | 34 ++++++++++++++++++++++++---------- SAE.h | 7 ++++--- exe | Bin 16952 -> 17048 bytes membres.don | 9 +++++++++ testSAE.c | 22 +++++++++++++++------- 6 files changed, 61 insertions(+), 20 deletions(-) diff --git a/ActivitesJour.don b/ActivitesJour.don index 7224ff2..5bad8fd 100644 --- a/ActivitesJour.don +++ b/ActivitesJour.don @@ -1,2 +1,11 @@ Date nbActivitesJour 13052022 120 +0 0 +5 5 +7 7 +8 8 +8 8 +6 6 +6 6 +2 2 +1 1 diff --git a/SAE.c b/SAE.c index 1f85ed6..832b8a0 100644 --- a/SAE.c +++ b/SAE.c @@ -52,29 +52,43 @@ int Ouverture(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[] fclose(flot); return i; } -/* -void pointsBonus() -{ -} - -void Sauvegarde(int tNoCarte[],int tnom[], int tprenom[], int tage[], int tPointsCarte[], int tCarteActive[], int tNbActivitéesJour[], int nbelem) +int Sauvegarde(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tNbActivitesJour[], int tDate[], int nbelem) { - int i; - FILE *flot; - flot = fopen("membres.don", "w"); + int i, j; + FILE *flot, *jour; + flot = fopen("membres.don", "a"); + jour = fopen("ActivitesJour.don", "a"); if(flot == NULL) { printf("Pb d'ouverture du fichier membres.don\n"); return -1; } + if(jour == NULL) + { + printf("Pb d'ouverture du fichier ActivitesJour.don\n"); + return -1; + } for(i = 0; i < (nbelem-1); i++) { - fprintf(flot, "%d\t%d\t%d\t%d\t%d\t%d\t%d\n", tNoCarte[i], tnom[i], tprenom[i], tage[i], tPointsCarte[i], tCarteActive[i], tNbActivitéesJour[i]); + fprintf(flot, "%d\t%d\t%d\t%d\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i]); } + for(j = 0; j < (nbelem-1); j++) + { + fprintf(jour, "%d\t%d\n", tDate[j], tNbActivitesJour[j]); + } + fclose(jour); fclose(flot); } +/* +void pointsBonus() +{ + +} + + + int rechercheEtCreation(int tNoCarte[], int nbClients) { int NoCarte, i; diff --git a/SAE.h b/SAE.h index f8e73d7..763d783 100644 --- a/SAE.h +++ b/SAE.h @@ -1,10 +1,11 @@ #include #include -int Ouverture(); -void testOuverture(); +int Ouverture(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tNbActivitesJour[], int tDate[], int tmax); +void testOuverture(void); +int Sauvegarde(); +void testSauvegarde(void); /* int pointsBonus(); -void sauvegarde(); int CreationAdherent(); int FrequenceCentre();*/ \ No newline at end of file diff --git a/exe b/exe index 9d746938c96e5b12b29535eb7bcdd4416510625c..2b7b4497c3fc8f008c541385ea3c9bbd1e28c34c 100755 GIT binary patch delta 3764 zcmZu!eQ*=U72lJPEeU@}vW+a4A_+tJ2uSi*Y{!-@fi;|q%@~NwM?$a$OR-z?X*qE+ zp|Zy)MWZUU*^(hCf54CyX40l6o}`YaX`xU=W-?PVA;s=6txeMzK?yO5DR$!I`rhr` z1v_5Qz2Cll@BMb)zFY4N9^pohsJtqTSrj>}%|-H&;H*)Z}TpO7&*8;IO}Jy2YQlw|9;2j_IkQ zikdA}np7>zNdq$uevH0bbV{Rk^$PAFy{|TNM(S5PIXgVf+$!-|jZfOEc5!jAaB?Tn zPU8a4rPQm+b_Dky2<#&VIzsIv7}y^qyLY#?@845izB|~y$G68lHF~hO& z+fG7S(Cv1Y0B!je=m&ez4qL&ewb5(O@X=d*&nFWNPu9gXuLCU~PcIUMdl3jBCk1>a zGp#i^;(h@-d|Yz~Mfp@HhmUFg=>QzL5Yh=_nbt0hdr6YKKJKm+9ZJ^Gg~r7-??|Rv zVJs*{lr6j5I=kNsSSOnIqP+dvy8_g-j2(2{3w0f%xeWHm$oOtra z*AOdSKg`D)uk$fq5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gCOUAM zRiC*11arj}Ulw9@SB2iH1m@(Q_79-{&UsY!R!x*v={p>l*2Hps%>sL|i0DA#8`y8$ znHj<7JC#@c1YR{280RCGxHXZKCYbaNw40V>TuXmSx&bbm@(P+IQ8M2u9OHc7U#P>T z2$8!4TQ$&=J}8P~xZ}Z><*XE9Uom_6)PyChp0028(H;%*LQI0_C9Kznvq`J{^D%Sz zijhd1dklxN)~=uOg_#c%bX85z-ek15YGUj5cw8z&O7J`OI5}E{4>CZ4%WGo3b1xAR ze4{#gJy=&A{X4iU7@epSV)ITQy|gC(iO_XdljwicKX>LeRsWEBNV&&$bS4Qkw9U88 zUQ3oVHf(BNXWQ7a!4}@M4gs#)UIv5Rw3uyk`kbOvKxD5+?q8y~7jXyTmxu=t*CIwn zMDZ%(*eJFKQ86ZpGq6p$h{cFo5w}8*J&zW`F*~p7yf2Dj_!aH%fI2MnFyuI_<>L=T zF%#7!n4$letC+4<=xBPHhU6l30DreJyBTrHA7WlY@J%7CnxRoR>nPVMF~vAaDZYg_ zbTFju&Pl!MsaKm#!mbcdr8EiRc3KU3`B+Vp)F?OberkhS z-b&Tb%HP1#MY=+;vTy)1*j*O%)Vj46VZ`)7_bw{HpxZ)M;N1+9Za2LQt|Chgkq@QRgmxToB!dK?p@^wB7xAHFYec)d|8*%t?VQG8hYTM+G%@@ho3-F-Wvh51S8n|qdI$l#5 zeq%hV()re+E%ca>&~OnUG;p){mPcBDte*cwFMkNuS({xpF`{ z7ReH=2*`vC+45r22{WY(L1kysdu&lx6|eYydfknH-)Fbpftgc3vvx=`E#DaYjR z8< z_8R5D>*o#s`wsy&BO9_ySyL$VpYi)C?%{_4UYpt-0=R-6ZK_c#pf%{nJ$5qa*L4<3 e;pf%xDENvt;E~KQc*{My6JE(mqp+p)`F{Yek~Td6 diff --git a/membres.don b/membres.don index 8a686ff..38a0d9a 100644 --- a/membres.don +++ b/membres.don @@ -1 +1,10 @@ Ncarte age pointsCarte carteActive +0 0 0 0 1691030928 1691028928 1691032928 +5 5 5 5 1691030928 1691028928 1691032928 +7 7 7 7 1691030928 1691028928 1691032928 +8 8 8 8 1691030928 1691028928 1691032928 +8 8 8 8 1691030928 1691028928 1691032928 +6 6 6 6 1691030928 1691028928 1691032928 +6 6 6 6 1691030928 1691028928 1691032928 +2 2 2 2 1691030928 1691028928 1691032928 +1 1 1 1 1691030928 1691028928 1691032928 diff --git a/testSAE.c b/testSAE.c index 1b85ce7..7a0e73f 100644 --- a/testSAE.c +++ b/testSAE.c @@ -1,19 +1,27 @@ #include "SAE.h" -void testOuverture() +void testOuverture(void) { - int tNoCarte[500], tage[500], tPointsCarte[500], tCarteActive[500]; - int tDate[500], tNbActivitesJour[500]; + int tNoCarte[500] = {0}, tage[500] = {0}, tPointsCarte[500] = {0}, tCarteActive[500] = {0}; + int tDate[500] = {0}, tNbActivitesJour[500] = {0}; int tmax = 500, pas, i; - pas = Ouverture(tNoCarte, tage, tPointsCarte, tCarteActive, tNbActivitesJour, tDate, &tmax); + pas = Ouverture(tNoCarte, tage, tPointsCarte, tCarteActive, tNbActivitesJour, tDate, tmax); printf("Pas: %d", &pas); - printf("Ncarte nom prenom age pointsCarte carteActive nbActivitesJour\n"); + printf("Ncarte age pointsCarte carteActive nbActivitesJour Date taillemax\n"); for(i=0; i < pas; i++) - printf("\t%d\t%d\t%d\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i], tNbActivitesJour[i], tDate[i], &tmax); + printf("\t%d\t%d\t%d\t%d\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i], tNbActivitesJour[i], tDate[i], &tmax); +} + +void testSauvegarde(void) +{ + int tNoCarte[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tage[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tPointsCarte[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tCarteActive[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}; + int tDate[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tNbActivitesJour[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}; + Sauvegarde(tNoCarte, tage, tPointsCarte, tCarteActive, tNbActivitesJour, tDate, 10); } int main(void) { - testOuverture(); + //testOuverture(); + testSauvegarde(); return 0; } \ No newline at end of file From 668f83328193566a38773b8e05e1f6af0d283fa4 Mon Sep 17 00:00:00 2001 From: Antoine PEREDERII Date: Wed, 9 Nov 2022 16:36:13 +0100 Subject: [PATCH 2/4] Ajout des fonctions ajouts de points sur la carte, recherche et creation d'un adherant --- ActivitesJour.don | 21 ++++++------ SAE.c | 83 ++++++++++++++++++++++++++++++++++++++++------ exe | Bin 17048 -> 17048 bytes membres.don | 18 +++++----- testSAE.c | 4 +-- 5 files changed, 94 insertions(+), 32 deletions(-) diff --git a/ActivitesJour.don b/ActivitesJour.don index 5bad8fd..af64d63 100644 --- a/ActivitesJour.don +++ b/ActivitesJour.don @@ -1,11 +1,10 @@ -Date nbActivitesJour -13052022 120 -0 0 -5 5 -7 7 -8 8 -8 8 -6 6 -6 6 -2 2 -1 1 + Date nbActivitesJour +12082022 500 +5092022 525 +7092022 740 +8092022 812 +9092022 850 +10092022 620 +11092022 601 +12092022 422 +13092022 501 diff --git a/SAE.c b/SAE.c index 832b8a0..ad76707 100644 --- a/SAE.c +++ b/SAE.c @@ -71,30 +71,47 @@ int Sauvegarde(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[ } for(i = 0; i < (nbelem-1); i++) { - fprintf(flot, "%d\t%d\t%d\t%d\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i]); + fprintf(flot, "\t%d\t%d\t\t%d\t\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i]); } for(j = 0; j < (nbelem-1); j++) { - fprintf(jour, "%d\t%d\n", tDate[j], tNbActivitesJour[j]); + fprintf(jour, "%d\t\t%d\n", tDate[j], tNbActivitesJour[j]); } fclose(jour); fclose(flot); } -/* -void pointsBonus() +int ajoutPointsCarte(int tNoCarte[], int tPointsCarte[], int tCarteActive[], int nbelem) { - + int i, NoCarte, pointsCarte, CarteActive; + printf("Entrez le numero de carte de l'adherent: "); + scanf("%d", &NoCarte); + for(i = 0; i < nbelem; i++) + { + if(NoCarte == tNoCarte[i]) + { + printf("Entrez le nombre de points a ajouter: "); + scanf("%d", &pointsCarte); + tPointsCarte[i] += pointsCarte; + printf("Le nombre de points de l'adherent est maintenant de %d\n", tPointsCarte[i]); + if(tPointsCarte[i] >= 1000) + { + tCarteActive[i] = 1; + printf("La carte de l'adherent est maintenant active\n"); + } + return 0; + } + } + printf("Le numero de carte n'existe pas\n"); + return -1; } - - -int rechercheEtCreation(int tNoCarte[], int nbClients) +int rechercheEtCreation(int tNoCarte[], int nbelem) { int NoCarte, i; - for( i=0; i < nbClients; i++) + for( i=0; i < nbelem; i++) { - if(i != tNoCarte[i]) + if((i + 1) != tNoCarte[i]) { return i; } @@ -102,6 +119,52 @@ int rechercheEtCreation(int tNoCarte[], int nbClients) return i; } +int CreationAdherents(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem) +{ + int NoCarte, age, pointsCarte, CarteActive, pas; + char reponse; + printf("Donnez l'âge du client :\n"); + scanf("%d", &age); + pas = rechercheEtCreation(tNoCarte, nbelem); + for(j=nbelem; j> pas; j--) + { + tNoCarte[j] = tNoCarte[j-1]; + tage[j] = tage[j-1]; + tPointsCarte[j] = tPointsCarte[j-1]; + tCarteActive[j] = tCarteActive[j-1]; + } + tNoCarte[pas] = + tMatieres[i]= matieres; + tCoeff[i] = coeff; + nbMatieres = nbMatieres + 1; + return nbMatieres; + tNoCarte[pas] = tNoCarte[pas] + 1; + tage[pas] = age; + tPointsCarte[pas] = 0; + tCarteActive[pas] = 0; + printf("Le numero de carte de l'adherent qui a %d ans est %d.\nLa carte n'est pas active car il n'y a pas de points dessus.\nVoulez-vous en ajouter ? (O / N)", tage[pas], tNoCarte[pas]); + scanf("%*c%c", &reponse); + if(reponse == 'O' || reponse == 'o') + { + printf("Entrez le nombre de points a ajouter: "); + scanf("%d", &pointsCarte); + if(pointsCarte > 0) + tPointsCarte[pas] = tPointsCarte[pas] + pointsCarte; + printf("Le nombre de points de l'adherent est maintenant de %d\nVotre carte est désormais", tPointsCarte[pas]); + } + nbelem = nbelem + 1; +} + +/* +void pointsBonus() +{ + +} + + + + + int CreationAdherents(int tAdherents[], nbClients) { int NoCarte, nom, prenom, age, pointsCarte, CarteActive, nbActivitéesJour; diff --git a/exe b/exe index 2b7b4497c3fc8f008c541385ea3c9bbd1e28c34c..5d118ea19c6fe8f4e242c1baef76390bf552a187 100755 GIT binary patch delta 835 zcmX}qUq}=|90%~7-P7Bt zMjngAHeu&jo6s{!jARu*S{U+4FRvZ+3G`F%`JCw`R3GHF(f_5-pk=ok*R2#r434=qE1 z@-Ao<>N$HJ;yz>a#Z|}x{ahP_L?}=bg)*R?%gHLv+?&k84Gc1Gf^_ilI5C5~u|C6W2#YcXuOw zsB!0-+V?|DoYZ&a^`u>wqb}R__T=-g+qreG|D*J^d_U8J1>3O;KVm=P4cc4yJKu}_ zbIL~N6~5MyE))nER*`cdHG@7%2R&|bk3RF%lX0DR-5ZFZ7y70Jgq6MDc`{DF`iF@@ rLuGE>E6|a$KctOD1E=`|dAg_kmX*)6)92Mbn~{fVXokK}JuLhMmTYTI delta 756 zcmZY6PiWI%7{~GVP5&izb={cSl}g&qfrD8b>$KoD7FIE%MP*y{Aj2Mlc(C9>)Po0Q zb`T*Tz9`eHhcN|Fa?u^!po$6}RvbFVz$%Dkh)htJx*31VOL8%!ydR#!H&4>ZGMy~b zha#0qL1JGevx!z{iek*kzTxmYheIPq5n{{C+)ObfCL^VR)_R+W9tcDFQ z9WzgETcx@5nq~Qrc~QvIje2Ic?SHorZYt48(h9 zU7dq?@1myC*pbL#pK9EktFf*~3!9602l=)yYfk+&#Ow2}79d_e|i=8pMYRj0cf;@wV&clWwV zL%f@D)eG_N07MBBqDrp)w`Hm0&%)PVRSK&9xt`gutjBmH8LOOXl(U2=$MZ(thc@8Y zkp5OF4Cz0WQAJ-bsK%aoj7Rbv8|wI1vHr%q7CrA{HGlC&d^*;yN&nqJVvmCCdHjCU zQ~awMUTy*BRh(&dCGltH?B;^X*6@Td81j2&goc1fVi+ysH_UD)Wva3#$wRbg(l&Vu z)yzcdod?ISt}g;DvXAL0sxiGs7G?!@ujemba(dqdVWrhf?!Off9!YGbKP72V)NpC$ I_x>r*KUnE3DF6Tf diff --git a/membres.don b/membres.don index 38a0d9a..01fe651 100644 --- a/membres.don +++ b/membres.don @@ -1,10 +1,10 @@ Ncarte age pointsCarte carteActive -0 0 0 0 1691030928 1691028928 1691032928 -5 5 5 5 1691030928 1691028928 1691032928 -7 7 7 7 1691030928 1691028928 1691032928 -8 8 8 8 1691030928 1691028928 1691032928 -8 8 8 8 1691030928 1691028928 1691032928 -6 6 6 6 1691030928 1691028928 1691032928 -6 6 6 6 1691030928 1691028928 1691032928 -2 2 2 2 1691030928 1691028928 1691032928 -1 1 1 1 1691030928 1691028928 1691032928 + 1 22 10 0 + 2 25 5 1 + 3 47 7 1 + 4 38 8 1 + 5 18 8 1 + 6 46 6 1 + 7 36 6 0 + 8 19 2 1 + 9 21 1 1 diff --git a/testSAE.c b/testSAE.c index 7a0e73f..68e76aa 100644 --- a/testSAE.c +++ b/testSAE.c @@ -14,8 +14,8 @@ void testOuverture(void) void testSauvegarde(void) { - int tNoCarte[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tage[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tPointsCarte[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tCarteActive[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}; - int tDate[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}, tNbActivitesJour[500] = {0, 5, 7, 8, 8, 6, 6, 2, 1, 0}; + int tNoCarte[500] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, tage[500] = {22, 25, 47, 38, 18, 46, 36, 19, 21, 30}, tPointsCarte[500] = {10, 5, 7, 8, 8, 6, 6, 2, 1, 4}, tCarteActive[500] = {0, 1, 1, 1, 1, 1, 0, 1, 1, 1}; + int tDate[500] = {12082022, 5092022, 7092022, 8092022, 9092022, 10092022, 11092022, 12092022, 13092022, 14092022}, tNbActivitesJour[500] = {500, 525, 740, 812, 850, 620, 601, 422, 501, 520}; Sauvegarde(tNoCarte, tage, tPointsCarte, tCarteActive, tNbActivitesJour, tDate, 10); } From e126ae6447281d1628ebb6ee11fc668debac0a44 Mon Sep 17 00:00:00 2001 From: Antoine PEREDERII Date: Wed, 9 Nov 2022 16:39:02 +0100 Subject: [PATCH 3/4] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit modifs du README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a167d2e..513cebc 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ _Les adhérents bénéficient d’une carte qui leur permet d’accéder à diff - Ajouter un adhérent - Supprimer un adhérent -- Modifier le profil d'un adhérent via le n° de carte +- Modifier l'age d'un adhérent via le n° de carte - Afficher tous les adhérents -- Alimenter une carte +- Alimenter une carte en points - Activer/Désactiver une carte (déclaration de perte d'une carte, sanction suite à un mauvais comportement, carte retrouvée...) - Afficher les infos d'un adhérent - Afficher le nombre d'entrées par activité dans la journée From 03fb2883fc635a35b559991c91f0993407d23802 Mon Sep 17 00:00:00 2001 From: Kyllian CHABANON Date: Wed, 9 Nov 2022 17:05:37 +0100 Subject: [PATCH 4/4] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout de l'ordre du travail à faire --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 513cebc..0235987 100644 --- a/README.md +++ b/README.md @@ -42,5 +42,36 @@ _Les adhérents bénéficient d’une carte qui leur permet d’accéder à diff - Afficher le nombre d'entrées par activité dans la journée - Afficher le nombre d'adhérents - ... - +### Priorité de travail +- Menu : +``` +-- Afficher les infos d'un adherent (NoCarte, age, PointsCarte, CarteActive) +-- Afficher les infos de tous les adherents (NoCarte, age, PointsCarte, CarteActive, affiche nb de carte(adherents)) +-- Afficher le nb d'entrées totale de la journée +-- Afficher le nb d'entrées totale de toutes les journées +-- Afficher le nb d'adherents +-- Ajout d'un client +-- Modification de l'age d'un client +-- Supprimer un client +-- Ajout de points ==> carte devient Active +-- Modification de l'activation de la carte ==> Pert, sanction, carte retrouvée +-- Activité faite ==> Perte de points, ajout d'1 au nombre d'activités du jour depuis creation +-- quitter (sauvegarde) +``` +- Chargement +- Affichage d'un adherent +- Affichage de tous les adhérents +- Affichage de nb d'entrées journées +- Affichage nb d'entrées ttes journées +- Afficher le nb d'adherents +- Menu +- Gestion Menu (Global) +- Recherche d'un client (NoCarte) +- Ajout d'un client +- Modification de l'age d'un client +- Supprimer un client +- Ajout de points ==> carte devient Active entre 0 et 20 rien, entre 20 et 50 5%, entre 50 et 100 10%, plus 15% +- Modification de l'activation de la carte ==> Pert, sanction, carte retrouvée +- Activité faite ==> Perte de points, ajout d'1 au nombre d'activités du jour depuis creation +- Sauvegarde Documentation == les structures ex : tableaux pour rentrer les points ….