Question: Create a Java Program that stores a student ID number and a grade. Create any constructor(s), get, and set methods you'll need for creating and

Create a Java Program that stores a student ID number and a grade. Create any constructor(s), get, and set methods you'll need for creating and accessing MathStudent objects.

In a separate file, create an ArrayList for holding MathStudent objects. Prompt the user to input an ID number and grade, then create a MathStudent object with the data and add it to the ArrayList. Allow the user to keep entering students until the wish to stop.

Once the input is complete, use a separate loop to retrieve each grade from the list and calculate (then output) an average of all students.

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!