Which is the correct way to load an array named WorkHours with the number of hours that five employees worked last week?
a. ```Declare WorkHours[5] As Float
Declare J As Integer
For (J = 0; J<=4; J++)
Write “Input number hours worked for employee” + J+1
Input WorkHours[J]
End For```
b. ```Declare WorkHours[4] As Float
Declare J As Integer
For (J = 0; J<=4; J++)
Write “Input number hours worked for employee” + J+1
Input WorkHours[J+1]
End For```
c. ```Declare WorkHours[5] As Float
Declare J As Integer
For (J = 0; J<=5; J++)
Write “Input number hours worked for employee” + J
Input WorkHours[J+1]
End For```
d. None of these are correct
A
You might also like to view...
Write the HTML code that produces the following form (check boxes have the same format as radio buttons, except that you should use check box for the type).
A text box that displays the result of an expression
A) Label B) Expression box C) Calculated control
Another name for a procedures or sub procedure is ________
Fill in the blank(s) with correct word
A graphical representation of aggregated data derived from a PivotTable.
What will be an ideal response?