modif de l'affichage des admis ...

master
Antoine PEREDERII 2 years ago
parent 7e14d40e1a
commit e18f8ae186

@ -6,7 +6,7 @@ Albert
1
Clermont-Ferrand
Informatique
0
1
0
2
Michel
@ -15,7 +15,7 @@ Jacques
2
Clermont-Ferrand
Informatique
0
-1
0
Grenoble
Informatique
@ -28,7 +28,7 @@ Kyllian
1
Clermont-Ferrand
Informatique
0
2
0
Chabanonfg
Kyllianfg

@ -249,7 +249,7 @@ void menuCandidat(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandid
* @param tetudAttente Tableau des étudiants en file d'attente
* @param nbEtudAttente Nombre d'étudiants en file d'attente
*/
void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *nbIUT, Etudiant *tetudAdmis[], int *nbEtudAdmis, Etudiant *tetudAttente[], int *nbEtudAttente)
void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *nbIUT, Etudiant *tetudAdmis[], int nbEtudAdmis, Etudiant *tetudAttente[], int nbEtudAttente)
{
int choix;
bool c = false;
@ -274,16 +274,6 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
printf("\t2 - Affichages\n");
printf("\t3 - Modifier le nombre de places dans un département\n");
printf("\t4 - Modifier la note minimal d'admission du departement\n");
// printf("\t2 - Afficher les candidats dans mon département\n");
// printf("\t3 - Afficher les candidats admis du departement\n");
// printf("\t4 - Afficher les candidats refusés du departement\n");
// printf("\t5 - Afficher les candidats en attente du departement\n");
// printf("\t6 - Afficher les informations de tous les candidats du departement\n");
// printf("\t7 - Afficher les informations d'un seul candidat du departement\n");
// printf("\t8 - Afficher le statue d'un candidats du departement\n");
// printf("\t9 - Afficher le nombre de candidats admis du departement\n");
// printf("\t10- Afficher le nombre de candidats refusés du departement\n");
// printf("\t11- Afficher le nombre de candidats en attente du departement\n");
printf("\t9 - Quitter\n");
printf("\nEntrez votre choix :\n> ");
scanf("%d%*c", &choix);
@ -295,42 +285,12 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
case 2:
menuAffichage(tetudResp, nbCandidatsDept, tetudRespAdmis, nbCandidatsDeptAdmis, tetudRespAttente, nbCandidatsDeptAttente);
break;
/*case 1:
// modifNbPlaces(nbPlaces)
break;
case 2:
afficherCandidatsAdmis(tetud, nbCandidats);
break;
case 3:
afficherCandidatsRefuses(tetud, nbCandidats);
modificationNbPDept(tiut, *nbIUT);
break;
case 4:
afficherCandidatsAttente(tetud, nbCandidats);
break;
case 5:
afficherCandidats(tetud, nbCandidats);
break;
case 6:
afficherCandidat(tetud, nbCandidats);
break;
case 7:
statueCandidat(tetud, nbCandidats);
break;
case 8:
nbCandidatsAdmis(tetud, nbCandidats);
// modificationNoteMinDept(tiut, *nbIUT);
break;
case 9:
nbCandidatsRefuses(tetud, nbCandidats);
break;
case 10:
nbCandidatsAttente(tetud, nbCandidats);
break;
case 11:
// modifNoteMin(noteMin);
break;
case 12:
// modifNoteExel(noteExel);
break;*/
case 9:
c = true;
return;
@ -353,60 +313,45 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
* @param tetudAttente Tableau des étudiants en file d'attente
* @param nbEtudAttente Nombre d'étudiants en file d'attente
*/
void menuAffichage(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *nbIUT, Etudiant *tetudAdmis[], int *nbEtudAdmis, Etudiant *tetudAttente[], int *nbEtudAttente)
void menuAffichage(Etudiant *tetudResp[], int nbCandidatsDept, Etudiant *tetudRespAdmis[], int nbCandidatsDeptAdmis, Etudiant *tetudRespAttente[], int nbCandidatsDeptAttente)
{
int choix;
bool c = false;
while (c == false)
{
// system("clear");
printf("\n\nMenu des Affichages Responsable de Departement : Que voulez-vous faire ?\n");
printf("\t1 - Afficher les candidats dans mon département\n");
printf("\t1 - Afficher les candidats dans mon département (trier par note moyenne)\n");
printf("\t2 - Afficher les candidats admis du departement\n");
printf("\t3 - Afficher les candidats refusés du departement\n");
printf("\t4 - Afficher les candidats en attente du departement\n");
printf("\t5 - Afficher les informations de tous les candidats du departement\n");
printf("\t6 - Afficher les informations d'un seul candidat du departement\n");
printf("\t7 - Afficher le statue d'un candidats du departement\n");
// ! printf("\t8 - Afficher le nombre de candidats admis du departement\n");
// ! printf("\t9 - Afficher le nombre de candidats refusés du departement\n"); Les mettres a la fin de chaque affichage des autres
// ! printf("\t10- Afficher le nombre de candidats en attente du departement\n");
printf("\t5 - Afficher un seul candidat du departement\n");
printf("\t6 - Afficher le statue d'un candidats du departement\n");
printf("\t9 - Quitter\n");
printf("\nEntrez votre choix :\n> ");
scanf("%d%*c", &choix);
switch (choix)
{
case 1:
// lancerAdmission(tetudResp, *nbCandidats);
afficherCandidats(tetudResp, nbCandidatsDept);
printf("Il y a %d candidats dans votre departement.\n", nbCandidatsDept);
break;
case 2:
// afficherCandidatsAdmis(tetudResp, nbCandidatsDept);
afficherCandidatsAdmis(tetudResp, nbCandidatsDept);
printf("Il y a %d candidats admis dans votre departement.\n", nbCandidatsDeptAdmis);// ! A revoir nbr incorrect
break;
case 3:
// afficherCandidatsRefuses(tetudResp, nbCandidatsDept);
afficherCandidats(tetudRespAttente, nbCandidatsDeptAttente);
afficherCandidatsRefuses(tetudResp, nbCandidatsDept);
printf("Il y a %d candidats refusés dans votre departement.\n", (nbCandidatsDept - (nbCandidatsDeptAdmis + nbCandidatsDeptAttente)));// ! A revoir nbr incorrect
break;
case 4:
// afficherCandidatsAttente(tetudResp, nbCandidatsDept);
afficherCandidats(tetudRespAdmis, nbCandidatsDeptAdmis);
afficherCandidatsAttente(tetudResp, nbCandidatsDept);
printf("Il y a %d candidats en attente dans votre departement.\n", nbCandidatsDeptAttente); // ! A revoir nbr incorrect
break;
case 5:
afficherCandidats(tetudResp, nbCandidatsDept);
afficherCandidat(tetudResp, nbCandidatsDept);
break;
// case 6:
// afficherCandidat(tetud, nbCandidats);
// break;
// case 7:
// statueCandidat(tetud, nbCandidats);
// break;
// case 8:
// nbCandidatsAdmis(tetud, nbCandidats);
// break;
// case 10:
// nbCandidatsRefuses(tetud, nbCandidats);
// break;
// case 11:
// nbCandidatsAttente(tetud, nbCandidats);
// afficherStatutCandidat(tetudResp, nbCandidatsDept);
// break;
case 9:
c = true;

@ -61,7 +61,7 @@ Etudiant *moyenneCandidats(Etudiant *tetud[], int nbCandidats)
return *tetud;
}
Etudiant modifStatueCandidat(Etudiant *tetud[], int nbCandidats, float noteMin[], float noteExel[])
Etudiant modifStatueCandidat(Etudiant *tetud[], int nbCandidats, float noteMin[])
{
for (int i = 0; i < nbCandidats; i++)
{
@ -69,10 +69,6 @@ Etudiant modifStatueCandidat(Etudiant *tetud[], int nbCandidats, float noteMin[]
{
tetud[i]->lChoix->choix.decisionAdmission = 2;
}
else if (tetud[i]->tabNotes[maths] >= noteExel[maths] && tetud[i]->tabNotes[francais] >= noteExel[francais] && tetud[i]->tabNotes[anglais] >= noteExel[anglais] && tetud[i]->tabNotes[spe] >= noteExel[spe] && tetud[i]->tabNotes[moy] >= noteExel[moy])
{
tetud[i]->lChoix->choix.decisionAdmission = 1;
}
else
{
tetud[i]->lChoix->choix.decisionAdmission = -1;

Loading…
Cancel
Save