|
From: <qa...@ho...> - 2003-06-11 07:42:23
|
Your teacher maybe? *********** REPLY SEPARATOR *********** On 2003-06-11 at 00:15 Liezel Joubert wrote: Hi there, can anyone help with this question? Write a program that computes final averages for a set of grades. The= program reads the grades from a file called Scores.dat. The file= scores.dat begins with a header line followed by a set of scores for each= student. The format of the header line is n weight1 weight2 ... weightn where n is the number of scores for each student and weight is the weight= of the score. The header line is followed by grades for each student. The= format of a grade line is name score1 score2.... scoren where name is the last name of the student and score is the score.= Allscores must be between 0 and 100. The program reads the file score.dat= and writes a file called average.dat that has the average computed in it. Do you Yahoo!? Free online calendar with sync to Outlook(TM). |