Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Someone help me do this public void summarizeResults (). //This is where you use the array of Student objects you created, and you // loop
Someone help me do this
public void summarizeResults (). //This is where you use the array of Student objects you created, and you // loop through it, finding the student with the highest gpa, the lowest gpa, and then //accumulate all the gpas, so that at the end of the 1 d of the loop, you can calculate the average gpa. // You can optionally put try catch for the arrayOutOfBounds error. //By now, the data in the array should be valid, since any errors were caught in the processFile method //You should have skipped the bad data recs. //If you skipped a bad data record, you could have an array with empty elements. Thus, //you could have exceptions if you don't first check that the element is not equal to nulls. public void summarizeResults (). //This is where you use the array of Student objects you created, and you // loop through it, finding the student with the highest gpa, the lowest gpa, and then //accumulate all the gpas, so that at the end of the 1 d of the loop, you can calculate the average gpa. // You can optionally put try catch for the arrayOutOfBounds error. //By now, the data in the array should be valid, since any errors were caught in the processFile method //You should have skipped the bad data recs. //If you skipped a bad data record, you could have an array with empty elements. Thus, //you could have exceptions if you don't first check that the element is not equal to nullsStep 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