|
From: Ronald <ron...@pt...> - 2003-06-12 00:28:15
|
I think the purpose of the question was to see if you were paying attention in class.... ...unless your class is on how to utilize the internet to do your work for you.....<grin> -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Liezel Joubert Sent: Wednesday, June 11, 2003 3:15 AM To: dev...@li... Subject: [Dev-C++] Urgent help needed! 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). |