Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5. Consider the following: You have a data file that contains the following grad

ID: 3914861 • Letter: 5

Question

5. Consider the following: You have a data file that contains the following grades (all separated by a space): 86.3 95.0 111.5 96.6 87.3 85.4 59.2 73.5 70.0 98.0 ASSUME the file has been opened successfully and the ifstream identifier is infile Using the following code segment: const int MAX ? for (int index = 0; index >grades[index]; e value for the constant MAX that will be large enough to hold all the values Fill in th in the data file. That is, replace with the proper number? a. b. What are the valid index values of the array?

Explanation / Answer

5) a) Answer: 10 b) 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 are the valid index values of the array