----- Original Message -----
From: Liezel Joubert
To: dev...@li...
Sent: Wednesday, June 11, 2003 3:15 PM
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.
Hello,
This looks like a class assignment but I could be wrong. Anyway, have you
started on the program design and pseudocode? And have you tried to write
the code in C++? If you have, do post the code so that some of us could help
you. It is best that you learn C++ by doing the coding yourself and if
you're stuck, post your problem here and I'm sure more people would be glad
to help you.
Best Regards,
Yeoh
--
|