Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Array Assignment: You are to create a CourseGrades application that simulates a

ID: 3538872 • Letter: A

Question

Array Assignment:

You are to create a CourseGrades application that simulates a grade book for a class with six students that each has 5 test scores. The CourseGrades application should use a GradeBook class that has a member variables grades, which is a two-dimensional array of integers, and methods getGrades() for prompting the user for the test grades for each student, showGrades() that displays the grades for the class, studentAvg() that has a student number parameter and then returns the average grade for that student, testAvg() that has a test number parameter and then returns the average grade for that test.

Hints:

You should create a one-dimensional array to hold the student names. Remember that in arrays the first storage location index number is zero not one. To simplify the process you do not need to write a routine to read the student names into an array. You can use a statement similar to the following to store the student names.

String[] students={%u201CStudent 1%u201D, %u201CStudent 2%u201D, %u201CStudent 3%u201D, %u201CStudent 4%u201D, %u201CStudent 5%u201D};

0

1

2

3

4

Student 1

Student 2

Student 3

Student 4

Student 5


The grades array should be a two-dimensional array that holds the 5 grades for each student. The grid should be 5 x 5 to hold the grades. Each row of the matrix will be associated with a student.

Index


0

1

2

3

4



Grade 1

Grade 2

Grade 3

Grade 4

Grade 5

0

Student 1






1

Student 2






2

Student 3






3

Student 4






4

Student 5







getGrades()

This method should permit you to enter the grades for each student and store them in the appropriate cell of the array. Remember that the first student%u2019s grades will be stored in row zero of the array. Student 2 will be in row 1 and so on. The first grade will be stored in column zero the second grade will be stored in column 1 and so on.




showGrades()

This method should display something similar to the following:

Student

Grade 1

Grade 2

Grade 3

Grade 4

Grade 5

Student 1






Student 2






Student 3






Student 4






Student 5







studentAvg()

This method should display the Student name, the individual scores and the average. You will be prompted for a student number (0 through 4) and the information will be retrieved from the array locations.


testAvg()

This method is similar to the studentAvg() method except it will return the name of the grade, the scores for the exam and the average. You will be prompted for an Exam number (0 through 4).

0

1

2

3

4

Student 1

Student 2

Student 3

Student 4

Student 5

Explanation / Answer

hope this link helps you. http://140.126.247.134/spock/docs/LVP_Java_text.pdf

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote