H.Rahman H.Rahman - 1 year ago 77
C++ Question

Each number of students grades and average

I have been trying to get total and average of each student in a class. I write this c++ program but this problem keeps adding previous students total and average. So how do I solve this problem?
Here is the code

Answer Source

Before your j loop you want to reset average and total to be 0 again

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download