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

consider the following: s. You have a data file that contains the following grad

ID: 3914850 • Letter: C

Question

consider the following: s. 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. const int MAX = 10;

b. valid index values = 0,1,2,3,4,5,6,7,8,9

c.double grades[10];

d.

void display(double grades[10]){

for(int i = 0;i<MAX;i++)

cout<<grades[i];

}

e. void display(double[]);

Do ask if any doubt. Please upvote.