NPH, thank you very much for the reply.
Sorry for not giving you more details. The question is something like this:
I am suppose to develop a simple reporting system to produce result files for students' performance in a certain subject. The information required to produce the results is stored on 2 files and the results is stored on another third file.
The first file is a subject description file, like I have shown earlier
Introduction to Software
Assignment, 100, 10
Attendance, 100, 10
Exam, 100, 70
Tutorial, 100, 10
(Item name, max score, scaled max score)
And the other is a assessment results file, like this
Introduction to Software
1234567, David, Assignment, 80, Attendance, 100, Exam, 75, Tutorial, 95
(Student ID, name, assessment item, score)
The final result file is suppose to be something like this
Introduction to Software
1234567, (final mark), (difference of final mark from average)
actualScore * scaledMaximumScore / maximumScore = formula to get final mark
I was planning to put the information into an array, but it seems to be quite complicated. There are a few problems that I have encountered. Such as not being able to choose which line to start reading the file from, or splitting each line into a different array.
Thanks again to anyone that helps