first off i would like to thank everyone for helping me with the previous problem, now this is another problem i have,
so far i think i did the right job, but i dont seem 2 know how 2 link two parts 2gether
yes as u all guess its a grading systemCode:
/*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ IFT 1810 CD, automne 2007, TP # x +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Auteur(s) : Amer Khayal , section C +
+ , section D +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Ce programme permet de : convertir des livres en kilo ainsi que des +
+ degres farenheit en celcius +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Derni?re mise ? jour : Mardi le 09 octobre 2007 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
#include <stdio.h>
int main(void)
{
int note;
printf("Entrez la note voulue (entre 0 et 100)");
scanf("%d", ¬e);
printf("\nLa note obtenue \n");
if(note>=0 && note<35)
printf("correspond a F");
else
if(note>=35 && note<50)
printf("correspond a E");
else
if(note>=50 && note<54)
printf("correspond a D");
else
if(note>=54 && note<57)
printf("correspond a D+");
else
if(note>=57 && note<60)
printf("correspong a C-");
else
if(note>=60 && note<65)
printf("correspond a C");
else
if(note>=65 && note<70)
printf("correspond a C+");
else
if(note>=70 && note<73)
printf("correspond a B-");
else
if(note>=73 && note<77)
printf("correspond a B");
else
if(note>=77 && note<80)
printf("correspond a B+");
else
if(note>=80 && note<85)
printf("correspond a A-");
else
if(note>=85 && note<90)
printf("correspond a A");
else
if(note>=90 && note<100)
printf("correspond a A+");
fflush(stdin);
getchar();
}
that was pretty easy i tried it and it worked but now comes the part i dot understand how to do.i m suppose 2 put in an equation, : avg= (exam1 x 0.20 + exam2 x 0.40) / 0.60
i m suppose 2 put that in so that while i doing the calculation of hte equation the answer will be given to me in number and letter.
but i dont know how 2 link it wih do while
Thank You for your time and help
