Hello,
I was assigned this question:
A Class of 40 students has received their grades for 5 exams (each out of 100).
Write a structured C++ program (using top-down design) that will do the
following:
Write function readData which reads the student data list which consist of the
Student ID
Write function printAvg that prints the ID and average score for each student
for 5 consecutive grades. Do the necessary validation on input.
Write a function worstAvg that calculates the worst average grade.
Write a function that prints the IDs of all students having the worst average
grade
I wrote the code and it runs, however it calculates the average grade of each
student wrong and I can't figure out why. Is it the for loop? Could someone
please have a look at the code and tell me what I'm missing.
Please help.
Thanks,
I didn't find the right solution from the Internet.