The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Student grading application

Hello everyone!

Got an assignment I got to do and i'm completely befuddled. All I got to do is: "Create a program that uses a multidimensional array to store student grades. The first dimension should be a number for each student's grades, and the second dimension should be for each student's grades. Display the average of all the grades earned by each student and an overall average for every student."

I have no clue how that should be done; all I got atm is student grades.

Re: Student grading application

I'm sure you know how to calculate average: average = total of scores / number of scores

To calculate each students grade:
Loop through each student, keeping track of the total scores. After you iterate through one student, perform the average calculation by dividing that particular student's score by the total number of scores (which will be 6).

To calculate the total average.
You can just add up each individual student's average and then divide by the number of students.

Output:
run:
The average grade mark of Issac is: 65
The average grade mark of dawiet is: 66
The average grade mark of alem is: 52
The average grade mark of ghebremariam is: 62
The average grade mark of daniel is: 62
The average grade mark of minus is: 81
BUILD SUCCESSFUL (total time: 4 seconds)