nyadimo
Junior Member level 2
hi
consider the problem of calculating the average score received on a test by students in each of the four classes: freshman(1st years), sophomore(2nd years), juniors(3rd years), and senoirs(4th years).
1. for each student a score is to be read together with a code 1,2,3 or 4 representing the class to which the student belongs.
2. for each class we must calculate the average score received by the student in the class. to do this, we must find the number of students in each class and sum all the scores for all the students in that class.
now, i am expected to write a program in either C, C++ or JAVA to solve the above problem. i am using an array as my data structure. Please assist me on this question, i am a student learning programming and intrested to be a good programmer in future. thank you.
consider the problem of calculating the average score received on a test by students in each of the four classes: freshman(1st years), sophomore(2nd years), juniors(3rd years), and senoirs(4th years).
1. for each student a score is to be read together with a code 1,2,3 or 4 representing the class to which the student belongs.
2. for each class we must calculate the average score received by the student in the class. to do this, we must find the number of students in each class and sum all the scores for all the students in that class.
now, i am expected to write a program in either C, C++ or JAVA to solve the above problem. i am using an array as my data structure. Please assist me on this question, i am a student learning programming and intrested to be a good programmer in future. thank you.