Which is the correct way to pass an array named studentScores that holds 25 values to a function named getAverage and save the result to a variable named average?

a. Set average = getAverage(studentScores)
b. Set average = getAverage(studentScores, 24)
c. Set average = getAverage(studentScores, 25)
d. Set getAverage = average(studentScores[25])

c. Set average = getAverage(studentScores, 25)

Computer Science & Information Technology

You might also like to view...

Relational databases use attributes (columns) and tuples (rows) to organize the data in a two-dimensional table

Indicate whether the statement is true or false.

Computer Science & Information Technology

A JTabbedPane

a. arranges GUI components into layers such that only one layer is visible at a time. b. allows users to access a layer of GUI components via a tab. c. extends JComponent. d. All of the above.

Computer Science & Information Technology