Which set of statements totals the items in each row of two-dimensional array items, and displays each row’s total?

a.```
for (int row = 0; row < items.length; row++) {
int total = 0;
for (int column = 0; column < items[row].length; column++) {
total += items[row][column];
System.out.printf("Row %d's total is %d%n", row, total);
}
```
b.```
int total = 0;
for (int row = 0; row < items.length; row++) {
for (int column = 0; column < items[row].length; column++) {
total += items[row][column];
}
System.out.printf("Row %d's total is %d%n", row, total);
}
```
c.```
int total = 0;
for (int row = 0; row < items.length; row++) {
for (int column = 0; column < items[column].length; column++) {
total += items[row][column];
}
System.out.printf("Row %d's total is %d%n", row, total);
}
```
d. ```
for (int row = 0; row < items.length; row++) {
int total = 0;
for (int column = 0; column < items[column].length; column++) {
total += items[row][column];
}
System.out.printf("Row %d's total is %d%n", row, total);
}
```

a. ```
for (int row = 0; row < items.length; row++) {
int total = 0;
for (int column = 0; column < items[row].length; column++) {
total += items[row][column];
}
System.out.printf("Row %d's total is %d%n", row, total);
}
```

Computer Science & Information Technology

You might also like to view...

You can select a printer to use from the printer list

Indicate whether the statement is true or false

Computer Science & Information Technology

?Critical Thinking Questions Case 11-2 ? Andy intends toregister his own domain name on the Internet for a minimal cost per year. Before he selects and registers a domain name, he should make sure it represents his business. Also, he should brainstorm and make a list of the top five keywords or phrases that best describe his business. ?Andy runs an event management business for weddings and birthdays. Which of the following top-level domains should he use?

A. ?.gov B. ?.co C. ?.mil D. ?.edu

Computer Science & Information Technology