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...

You reference columns individually using the ____ element.

A. B. C. D.

Computer Science & Information Technology

The arrow in the accompanying figure points to the XML Schema ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The original Trojan horse appears in Homer's ____________________.?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Ending a line with the ____ element creates the same effect as when you press the Enter key when composing a document with a word-processing application.

A. return B. enter C. break D. line-end

Computer Science & Information Technology