Grade calculator

Okay, so i am attempting to write this program in which the user is prompted to enter the number of students (N) who took a test and their scores. it then asks for the students name. The program calculates the scores and gives the grade of each student. I understand the logic, only i dont know how to make it do the calculations N times so that it does the same operation until it reaches the number of students they entered. if you get what im saying? any help would be greatly appreciated.
Something like this
1
2
3
4
5
6
7
8
9
 
// function 1: inputs (Scores[]), outputs(Grade[]) 

for(int i = 0; i < Scores.length(); i ++)
{
// Insert code here
}



The array size of scores should be the same as N if I'm not mistaken.


Edit: if you are asking about inputs your driver would need to have a
 
for (int i = 0; i < N; i ++)





Last edited on
Topic archived. No new replies allowed.