Question: Create a Class Student with instance variables subject1, subject2, subject3. Create a constructor which initializes the values of subject1, subject2 and subject3 using a Random
Create a Class Student with instance variables subject1, subject2, subject3. Create a constructor which initializes the values of subject1, subject2 and subject3 using a Random Number Generator. Also create a method total which returns the total of subject1, subject2 and subject3. Now create a Tester class and declare an ArrayList of 10 Students. Initialize all the students in arraylist. Also, in the Tester class, return the index of student with highest total and lowest total. You should use loops to initialize and find max,min. (Java)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
