Perform the following tasks for an array called table:

a) Declare and create the array as an integer array that has three rows and three columns.
Assume that the constant ARRAY_SIZE has been declared to be 3.
b) How many elements does the array contain?
c) Use a for statement to initialize each element of the array to the sum of its indices. As- sume that the integer variables x and y are declared as control variables.


```
a) int[][] table = new int[ARRAY_SIZE][ARRAY_SIZE];
```
b) nine
```
c) for (int x = 0; x < table.length; x++)
for (int y = 0; y < table[x].length; y++)
table[x][y] = x + y;
```

Computer Science & Information Technology

You might also like to view...

In order to delete a control from a form, you should select the control and then __________.

a. click the Remove Item icon on the menu bar b. click the Cut icon in the Properties window c. press the Delete key on the keyboard d. click Delete from the View menu

Computer Science & Information Technology

How does the show ip interface brief command differ for a switch as compared to a router?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is the IPv6 loopback address?

A. 000:000:: B. 1000:127:0:0:1 C. ::1 D. ::FFFF

Computer Science & Information Technology

The Physical Layer Convergence Procedure (PLCP) standards for 802.11b are based on ____.

A. DSSS B. FHSS C. OFDM D. PYS

Computer Science & Information Technology