Rewrite the for loop body from the SnakeEyes program so that the variables num1 and num2 are not used.

What will be an ideal response?


```
for (int roll=1; roll <= ROLLS; roll++)
if (die1.roll() == 1 and die2.roll() == 1)
count++;

```

Computer Science & Information Technology

You might also like to view...

In the accompanying figure, Elvis is an example of a(n) ____.

A. primary folder B. subfolder C. filename D. path

Computer Science & Information Technology

When do we use an adjacency list?

a. For a graph that is undirected b. When sorting a list c. When searching through a list for an element d. For a hash table

Computer Science & Information Technology

Preformatted SmartArt styles can be applied from the DESIGN tab

Indicate whether the statement is true or false

Computer Science & Information Technology

What does the /e switch in the xcopy command do?

What will be an ideal response?

Computer Science & Information Technology