Trying to create gradelist

Hello all,

I have been trying to figure out how to write this simple part of the program, but the instructions have me confused. PLEASE help me understand what they are asking for....

Quote:

Design a class to represent a list of grades. The class will also have a list of weights for averaging the grades. The two lists should have the same size. The class will manage the two lists and allow a client to obtain an average of the grades using either a standard average or a weighted average.

Start by writing a constructor for the class. The constructor will take one parameter, the number of grades. It will create two arrays of the given size. Grades will be integers between 0 and 100. Grade weights will be between 0 and 1. The constructor will set each grade to 0 and set all of the weights equal. The sum of the weights will be 1.0.

This is what I have so far, but I don't want to continue because I know im on the wrong track.

Code:

`public class GradeList {`

int myTests;

int myQuizzes;

double weightedQuizzes;

double weightedTests;

public void GradeList (int numGrades){

myTests = 0;

myQuizzes = 0;

weightedQuizzes =1.0

weightedTests = 1.0

numGrades -0;

}

}

PLEASE HELP!