Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started