Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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 Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

i cant figure this out

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago