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
Get step-by-step solutions from verified subject matter experts
