sunilvarma
04-26-2005, 02:01 PM
hi this is sunil
i am working on a C project
that is a project related to my college
what i need to do is ask a roll no of student from the user(some proffesor)
and ask him to enter the marks secured by the student in all the six tests in all subjects then get the best four marks of each subject and calculate average of those four marks
i need to store those averages of all 4 subjects for all the students in a file
i have two ways to do it:
1)Read one students marks of all subjects calculate average and write it to a file(this ends up to 60 files(60 students))
2)Read each subject marks of all students and calculate averages and write to a single file(7 files(7 subjects))
which do you think better and easy
also any suggestions please.......
i am working on a C project
that is a project related to my college
what i need to do is ask a roll no of student from the user(some proffesor)
and ask him to enter the marks secured by the student in all the six tests in all subjects then get the best four marks of each subject and calculate average of those four marks
i need to store those averages of all 4 subjects for all the students in a file
i have two ways to do it:
1)Read one students marks of all subjects calculate average and write it to a file(this ends up to 60 files(60 students))
2)Read each subject marks of all students and calculate averages and write to a single file(7 files(7 subjects))
which do you think better and easy
also any suggestions please.......