Which of the following would be an appropriate loop header when reading data from a file to fill an array defined by:

float grades[MAX];

a) for (int i = 0; i < MAX; i++)
b) for (int i = 0; i < MAX –1; i++)
c) while (!fileIn.eof( ))
d) while (!fileIn.eof( ) && i < MAX)

d) while (!fileIn.eof( ) && i < MAX)

Computer Science & Information Technology

You might also like to view...

The Excel comparison operator for "not equal to" is < >

Indicate whether the statement is true or false

Computer Science & Information Technology

Where possible, determine the number of significant digits for the following numbers:

12000

Computer Science & Information Technology