Question: Part 1: Create a class called Student. A student should have an ID, a name, and a grade level (012) and a grade (0 to

 Part 1: Create a class called Student. A student should have

Part 1: Create a class called Student. A student should have an ID, a name, and a grade level (012) and a grade (0 to 100). Create a constructor where the id is generated sequentially using a static variable called nexiID, the name and grade level are passed in as parameters, and the grade is created randomly. Create getters and setters for each instance variable and create a method used to print a student object. Part 2: In student, create static methods that will take an AmayList of Students and refum the average grade for all students, the maximum grade for all students, the minimum grade for all students, and the most frequent grade (mode) for all students. Part 3: Create a method called removeDuplicates that removes duplicate students if they have the same name and the same grade level. This method will take the AmayList as a parameter and return the AmayList with all the duplicates removed. The method should also print info for the students it is removing. Part 4: Back in Main, create an ArrayList of Students using the data and in the order provided in studentData.txt Create four more ArrayLists, one for each grade level, to hold Student objects. In the Student class, create a static method to take both the student array and the grade level array. You will call this four times from main0, once for each grade-level array. In the new Student method, fill the array with students from your original ArrayList with the students at the corresponding grade level. Print the number of students in each grade level using the size of the four grade-level Arraylists. From main0 and for each grade level array, print the maximum grade for each grade group

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!