Question: 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 nulls
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
