Question: Data Structure in JAVA ASSIGNMENT Problem 1: GradBookEntry Class Starting with the classes given below that are similar to the Person and Student classes we

Data Structure in JAVA ASSIGNMENT

Problem 1: GradBookEntry Class Starting with the classes given below that are similar to the Person and Student classes we covered in class, implement a GradeBookEntry class as shown in Figure 1.

Figure 1:

Data Structure in JAVA ASSIGNMENT Problem 1: GradBookEntry Class Starting with the

Include a main method to the GradeBookEntry class that does the following:

Creates an array of 10 GradeBookEntry objects, and for each element i in the array, create a new GradeBookEntry object with:

 student field: firstName = "first_i" lastName = "last_i" age = a random age between 18 and 22 gradYear = 2004 assignments field: an array of 20 grades each element in the array = random grade between 50 and 100 

For each GradeBookEntry object, print the student's name, the student's max, min, and average grade. Print this as a table. Something like this is fine:

 Student's Name Max Min Ave -------------- --- --- --- first_0 last_0 96 50 69.25 first_1 last_1 97 51 71.1 first_2 last_2 99 59 79.75 . . . . . . . . . . . . 

Print each student's grade on assignment #4

Print the Student information for the student with the highest grade on assignment #4

Student 1 Homework #4

Student 2 Homework #4

.......

Student info for the student with the max grade for homework #4

GradeBookEntry Class Data Studcnt Methods Set a grade for a particular assignment Get a gcade for a pacticular assignment Get number of valid grades Get max grade Get min gcade Get ave gcade

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!