Title: Which is the correct way to load an array named WorkHours with the number of hours that five ... Post by: ian18 on May 5, 2018 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 Title: Re: Which is the correct way to load an array named WorkHours with the number of hours that five ... Post by: goding on May 5, 2018 Content hidden
|