Pls help me doing a program in C..the problem is..
a program that compute for grades..
Prelim
Quz1:
Quiz2:
Cs:
Exam:
your prelim grade is:
Midterm
Quz1:
Quiz2:
Cs:
Exam:
your midterm grade is:
Finals
Quz1:
Quiz2:
Cs:
Exam:
your final grade is:
Total grade:
/* the general formula for computing the grade for ech period
prelim grade=((q1*.200+(q2*.2)+(cs*.1)+(ex*.5))
midterm=((q1*.200+(q2*.2)+(cs*.1)+(ex*.5))
final=((q1*.200+(q2*.2)+(cs*.1)+(ex*.5))
while the Total grade is:
((prelim*.3)+(midterm*.3)+(final*.4))
but the problem is we cannot input a grade that is lower than 50 and higher than 100..if you input lower than 50 or greater than 100 there it will display "you inpuat an invaliod value and return to the place where you input an invalid valu..like in this example:
Prelim
Quz1:/*i input 80*/
Quiz2:/*i input 46*/
you input an invalid value
pls input again
Quiz2:/*so you will input again*/
/*and so on the same with other period*/
Cs:
Exam:
your prelim grade is: