Search:

Type: Posts; User: helloworld922

Search: Search took 0.09 seconds.

  1. Re: Grade averaging program with array and multiple methods.

    Sort of. Instead of computing the sumOfGrades in the fillArray method, compute it in the average method. Then divide by the of grades you have (hint: grades.length)

    The compile error you're...
  2. Re: Grade averaging program with array and multiple methods.

    That's the reason why we are using static methods here: because the clerk object for all intensive purposes is only taking up space to allow us to call methods that act statically (aka. they don't...
  3. Re: Grade averaging program with array and multiple methods.

    hmm.. it looks like all your methods are asking users for grades rather than actually passing along previously entered values.

    To pass parameters to a method, put the parameter type and the name...
  4. Re: Grade averaging program with array and multiple methods.

    You don't need to re-declare each int in the array grades[] (it's understood that they must be int's).


    int[] grades = new grades[howManyGrades];
    for (int i = 0; i < howManyGrades]; i++)
    {
    ...
Results 1 to 4 of 4