Label the elements of three-by-five two-dimensional array sales to indicate the order in which they’re set to zero by the following program segment:
```
for (int row = 0; row < sales.length; row++) {
for (int col = 0; col < sales[row].length; col++) {
sales[row][col] = 0;
}
}
```
```
sales[0][0], sales[0][1], sales[0][2], sales[0][3],
sales[0][4], sales[1][0], sales[1][1], sales[1][2],
sales[1][3], sales[1][4], sales[2][0], sales[2][1],
sales[2][2], sales[2][3], sales[2][4]
```
You might also like to view...
Add variable x to variable sum, and assign the result to variable sum.
Write a Java statement to accomplish each of the tasks:
Develop a JavaScript program that will determine the gross pay for each of three employees. The company pays “straight- time” for the first 40 hours worked by each employee and pays “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee, determine the employee's gross pay and output HTML text that displays the employee's gross pay. Use prompt dialogs to input the data.
What will be an ideal response?