In the future, ALWAYS use the code tags (icons are in the editing window of the forum). Just paste your code between the supplied [CODE ] [/CODE ] tags. (You get a pair of code tags by clicking on the [CODE ] icon.)
This is your program, formatted, and using code tags:
What is this compute you using at 48 and 55th line??
And where you printing your marks calculated ??
If im not wrong you not initialized grade and still using for calculation, you 'll get garbage values
Change datatype of exam, classtanding and total to float as they will hold decimal digits ..
/* Use your code to scan the data, What you wrote in above prog is correct itseems */
/* do calculation */
exams = ((prelim+midterm+semifinals+finals)/4)* 0.6;
classstanding = (quizzes*.05)+(assignments*.15)+(project*.15)+(attendance*.5);
/* print your results */
printf(" Total = %f",total);