Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

How to find out which graph is good to represent a data

Answered: 1 week ago